rem: var tempname = "newscript.user.js";  var source = getContentDir(); source.append("template.user.js");  var dest = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("TmpD", Components.interfaces.nsILocalFile);  var destFile = dest.clone().QueryInterface(Components.interfaces.nsILocalFile); destFile.append(tempname);  if (destFile.exists()) { destFile.remove(false); }  source.copyTo(dest, tempname);  openInEditor( destFile, this.bundle.getString("editor.prompt")); 
add: var windowWatcher = Components .classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); windowWatcher.openWindow( window, 'chrome: 'chrome,dependent,centerscreen,resizable,dialog', null ); 
context: GM_BrowserUI.newUserScript = function() {  var tempname = "newscript.user.js";  var source = getContentDir();  source.append("template.user.js");  var dest = Components.classes["@mozilla.org/file/directory_service;1"]                       .getService(Components.interfaces.nsIProperties)                       .get("TmpD", Components.interfaces.nsILocalFile);  var destFile = dest.clone().QueryInterface(Components.interfaces.nsILocalFile);  destFile.append(tempname);  if (destFile.exists()) {    destFile.remove(false);  }  source.copyTo(dest, tempname);  openInEditor(    destFile,    this.bundle.getString("editor.prompt"));}
meta: 4236	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4236/4e1beca810a4d7f6013e9b7ca8c895cdbf407c37/browser.js/clean/src/chrome/chromeFiles/content/browser.js