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

Side by Side Diff: background.js

Issue 8432019: Added acceptable ads list to the options UI (Closed)
Patch Set: Created Sept. 25, 2012, 2:18 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 | « _locales/zh_TW/messages.json ('k') | lib/adblockplus_compat.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 importAll("filterClasses", this); 1 importAll("filterClasses", this);
2 importAll("subscriptionClasses", this); 2 importAll("subscriptionClasses", this);
3 importAll("filterStorage", this); 3 importAll("filterStorage", this);
4 importAll("elemHide", this); 4 importAll("elemHide", this);
5 importAll("filterListener", this); 5 importAll("filterListener", this);
6 importAll("filterNotifier", this); 6 importAll("filterNotifier", this);
7 importAll("matcher", this); 7 importAll("matcher", this);
8 importAll("prefs", this);
8 importAll("synchronizer", this); 9 importAll("synchronizer", this);
10 importAll("utils", this);
9 11
10 // Some types cannot be distinguished 12 // Some types cannot be distinguished
11 RegExpFilter.typeMap.OBJECT_SUBREQUEST = RegExpFilter.typeMap.OBJECT; 13 RegExpFilter.typeMap.OBJECT_SUBREQUEST = RegExpFilter.typeMap.OBJECT;
12 RegExpFilter.typeMap.MEDIA = RegExpFilter.typeMap.FONT = RegExpFilter.typeMap.OT HER; 14 RegExpFilter.typeMap.MEDIA = RegExpFilter.typeMap.FONT = RegExpFilter.typeMap.OT HER;
13 15
14 FilterNotifier.addListener(function(action) 16 FilterNotifier.addListener(function(action)
15 { 17 {
16 if (action == "load") 18 if (action == "load")
17 { 19 {
18 importOldData(); 20 importOldData();
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 refreshIconAndContextMenu(windows[i].tabs[j]); 489 refreshIconAndContextMenu(windows[i].tabs[j]);
488 }); 490 });
489 491
490 // Update icon if a tab changes location 492 // Update icon if a tab changes location
491 chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) 493 chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab)
492 { 494 {
493 chrome.tabs.sendRequest(tabId, {reqtype: "clickhide-deactivate"}) 495 chrome.tabs.sendRequest(tabId, {reqtype: "clickhide-deactivate"})
494 if(changeInfo.status == "loading") 496 if(changeInfo.status == "loading")
495 refreshIconAndContextMenu(tab); 497 refreshIconAndContextMenu(tab);
496 }); 498 });
OLDNEW
« no previous file with comments | « _locales/zh_TW/messages.json ('k') | lib/adblockplus_compat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld