rem: var foundScript = false; 
add: var foundInjectedScript = false; 
context: function GM_showPopup(aEvent) {  var config = new Config(getScriptFile("config.xml"));  config.load();  var popup = aEvent.target;  var url = getBrowser().contentWindow.document.location.href;  // set the enabled/disabled state  GM_BrowserUI.statusEnabledItem.setAttribute("checked", GM_getEnabled());  // remove all the scripts from the list  for (var i = popup.childNodes.length - 1; i >= 0; i--) {    if (popup.childNodes[i].hasAttribute("value")) {      popup.removeChild(popup.childNodes[i]);    }  }  var foundScript = false;  // build the new list of scripts  for (var i = 0, script = null; script = config.scripts[i]; i++) {    incloop: for (var j = 0; j < script.includes.length; j++) {      var pattern = convert2RegExp(script.includes[j]);      if (pattern.test(url)) {        for (var k = 0; k < script.excludes.length; k++) {          pattern = convert2RegExp(script.excludes[k]);          if (pattern.test(url)) {            break incloop;          }        }        foundInjectedScript = true;        var mi = document.createElement('menuitem');        mi.setAttribute('label', script.name);        mi.setAttribute('value', i);        mi.setAttribute('type', 'checkbox');        mi.setAttribute('checked', script.enabled.toString());        popup.insertBefore(mi, document.getElementById("gm-status-no-scripts-sep"));        break incloop;      }    }  }  document.getElementById("gm-status-no-scripts").collapsed = foundInjectedScript;}
meta: 9744	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9744/25ec01bfdcd6b3e0664e3db5531f9cc29e6cbb0a/browser.js/clean/src/chrome/chromeFiles/content/browser.js