OLD | NEW |
1 var ElemHide = require("elemHide").ElemHide; | 1 with(require("filterClasses")) |
2 var DownloadableSubscription = require("subscriptionClasses").DownloadableSubscr
iption; | 2 { |
3 var WhitelistFilter = require("filterClasses").WhitelistFilter; | 3 this.Filter = Filter; |
4 var Filter = require("filterClasses").Filter; | 4 this.WhitelistFilter = WhitelistFilter; |
| 5 } |
| 6 with(require("subscriptionClasses")) |
| 7 { |
| 8 this.Subscription = Subscription; |
| 9 this.DownloadableSubscription = DownloadableSubscription; |
| 10 } |
5 var FilterNotifier = require("filterNotifier").FilterNotifier; | 11 var FilterNotifier = require("filterNotifier").FilterNotifier; |
6 var FilterStorage = require("filterStorage").FilterStorage; | 12 var FilterStorage = require("filterStorage").FilterStorage; |
7 var Prefs = require("prefs").Prefs; | 13 var ElemHide = require("elemHide").ElemHide; |
| 14 var defaultMatcher = require("matcher").defaultMatcher; |
8 var Synchronizer = require("synchronizer").Synchronizer; | 15 var Synchronizer = require("synchronizer").Synchronizer; |
9 var Subscription = require("subscriptionClasses").Subscription; | |
10 var SpecialSubscription = require("subscriptionClasses").SpecialSubscription; | |
11 var Utils = require("utils").Utils; | |
12 | 16 |
13 var isFirstRun = false; | 17 var isFirstRun = false; |
14 FilterNotifier.addListener(function(action) | 18 FilterNotifier.addListener(function(action) |
15 { | 19 { |
16 if (action == "load") | 20 if (action == "load") |
17 { | 21 { |
18 importOldData(); | 22 importOldData(); |
19 if (!window.localStorage.currentVersion) | 23 if (!window.localStorage.currentVersion) |
20 { | 24 { |
21 isFirstRun = true; | 25 isFirstRun = true; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 var selectors = ElemHide.getSelectorsForDomain(host, false); | 239 var selectors = ElemHide.getSelectorsForDomain(host, false); |
236 event.source.postMessage({reqtype: "get-settings-response", selectors: sel
ectors}); | 240 event.source.postMessage({reqtype: "get-settings-response", selectors: sel
ectors}); |
237 break; | 241 break; |
238 } | 242 } |
239 }, false); | 243 }, false); |
240 | 244 |
241 setDefaultOptions(); | 245 setDefaultOptions(); |
242 createToolbarButton(); | 246 createToolbarButton(); |
243 refreshToolbarButton(); | 247 refreshToolbarButton(); |
244 loadI18nMessages(); | 248 loadI18nMessages(); |
OLD | NEW |