Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: background.js

Issue 8616123: adblockplusopera: Update code from ABP for Chrome (Closed)
Patch Set: Generated locales Created Oct. 22, 2012, 12:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | i18n.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
OLDNEW
« no previous file with comments | « no previous file | i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld