rem: if (w.location.href == "chrome: 
add: if ((w.location.href == "chrome: (w.location.href == "chrome: 
context:   function closeDownloadManager() {    var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);     var en = wm.getEnumerator("");     var n = 0;     var dlm = null;        while (en.hasMoreElements()) {       var w = en.getNext();       if (w.location.href == "chrome://mozapps/content/downloads/downloads.xul") {        dlm = w;        break;      }    }    if (dlm != null) {      dlm.close();    }  }
meta: 4236	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4236/e2ff2c9cbb759f91bf5a308f212528d3a046209f/greasemonkey.js/buggy/src/content/greasemonkey.js