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

Side by Side Diff: background.js

Issue 29361722: Issue 4592 - Adapt messaging code for the new element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockplusui
Patch Set: Remove features property Created Nov. 21, 2016, 5:31 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 | messageResponder.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 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 { 308 {
309 var blocked = params.blockedURLs.split(","); 309 var blocked = params.blockedURLs.split(",");
310 if (blocked.indexOf(url) >= 0) 310 if (blocked.indexOf(url) >= 0)
311 return new modules.filterClasses.BlockingFilter(); 311 return new modules.filterClasses.BlockingFilter();
312 else 312 else
313 return null; 313 return null;
314 } 314 }
315 } 315 }
316 }; 316 };
317 317
318 modules.cssRules = { 318 modules.elemHideEmulation = {
319 CSSRules: { 319 ElemHideEmulation: {
320 getRulesForDomain: function(domain) { } 320 getRulesForDomain: function(domain) { }
321 } 321 }
322 }; 322 };
323 323
324 modules.filterNotifier = { 324 modules.filterNotifier = {
325 FilterNotifier: new EventEmitter() 325 FilterNotifier: new EventEmitter()
326 }; 326 };
327 327
328 modules.info = { 328 modules.info = {
329 platform: "gecko", 329 platform: "gecko",
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 if (params.safariContentBlocker) 481 if (params.safariContentBlocker)
482 { 482 {
483 global.safari = { 483 global.safari = {
484 extension: { 484 extension: {
485 setContentBlocker: function() {} 485 setContentBlocker: function() {}
486 } 486 }
487 }; 487 };
488 } 488 }
489 })(this); 489 })(this);
OLDNEW
« no previous file with comments | « no previous file | messageResponder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld