OLD | NEW |
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.elemHideEmulation = { | 318 modules.elemHideEmulation = { |
319 ElemHideEmulation: { | 319 ElemHideEmulation: {} |
320 getRulesForDomain: function(domain) { } | |
321 } | |
322 }; | 320 }; |
323 | 321 |
324 modules.filterNotifier = { | 322 modules.filterNotifier = { |
325 FilterNotifier: new EventEmitter() | 323 FilterNotifier: new EventEmitter() |
326 }; | 324 }; |
327 | 325 |
328 modules.info = { | 326 modules.info = { |
329 platform: "gecko", | 327 platform: "gecko", |
330 platformVersion: "34.0", | 328 platformVersion: "34.0", |
331 application: "firefox", | 329 application: "firefox", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 478 |
481 if (params.safariContentBlocker) | 479 if (params.safariContentBlocker) |
482 { | 480 { |
483 global.safari = { | 481 global.safari = { |
484 extension: { | 482 extension: { |
485 setContentBlocker: function() {} | 483 setContentBlocker: function() {} |
486 } | 484 } |
487 }; | 485 }; |
488 } | 486 } |
489 })(this); | 487 })(this); |
OLD | NEW |