Changeset 682
- Timestamp:
- 03/14/08 14:25:56 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/config-service/src/chrome/chromeFiles/content/browser.js
r681 r682 464 464 465 465 var popup = aEvent.target; 466 //***var url = getBrowser().contentWindow.document.location.href;467 466 var tail = document.getElementById("gm-status-no-scripts-sep"); 468 467 branches/config-service/src/chrome/chromeFiles/content/config.js
r680 r682 401 401 Script.prototype = { 402 402 matchesURL: function(url) { 403 function test(page) { return convert2RegExp(page).test(url); } 403 function test(page) { 404 return convert2RegExp(page).test(url); 405 } 406 404 407 return this._includes.some(test) && !this._excludes.some(test); 405 408 }, branches/config-service/src/components/greasemonkey.js
r680 r682 231 231 232 232 initScripts: function(url) { 233 return GM_getConfig().getMatchingScripts( 234 function (script) { return script.enabled && script.matchesURL(url); } 235 ); 233 function testMatch(script) { 234 return script.enabled && script.matchesURL(url); 235 } 236 237 return GM_getConfig().getMatchingScripts(testMatch); 236 238 }, 237 239
