Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -1,14 +1,18 @@ |
-var ElemHide = require("elemHide").ElemHide; |
-var DownloadableSubscription = require("subscriptionClasses").DownloadableSubscription; |
-var WhitelistFilter = require("filterClasses").WhitelistFilter; |
-var Filter = require("filterClasses").Filter; |
+with(require("filterClasses")) |
+{ |
+ this.Filter = Filter; |
+ this.WhitelistFilter = WhitelistFilter; |
+} |
+with(require("subscriptionClasses")) |
+{ |
+ this.Subscription = Subscription; |
+ this.DownloadableSubscription = DownloadableSubscription; |
+} |
var FilterNotifier = require("filterNotifier").FilterNotifier; |
var FilterStorage = require("filterStorage").FilterStorage; |
-var Prefs = require("prefs").Prefs; |
+var ElemHide = require("elemHide").ElemHide; |
+var defaultMatcher = require("matcher").defaultMatcher; |
var Synchronizer = require("synchronizer").Synchronizer; |
-var Subscription = require("subscriptionClasses").Subscription; |
-var SpecialSubscription = require("subscriptionClasses").SpecialSubscription; |
-var Utils = require("utils").Utils; |
var isFirstRun = false; |
FilterNotifier.addListener(function(action) |