LEFT | RIGHT |
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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 } | 101 } |
102 }; | 102 }; |
103 | 103 |
104 modules.prefs = {Prefs: new EventEmitter()}; | 104 modules.prefs = {Prefs: new EventEmitter()}; |
105 let prefs = { | 105 let prefs = { |
106 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], | 106 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], |
107 notifications_showui: params.showNotificationUI, | 107 notifications_showui: params.showNotificationUI, |
108 shouldShowBlockElementMenu: true, | 108 shouldShowBlockElementMenu: true, |
109 show_devtools_panel: true, | 109 show_devtools_panel: true, |
| 110 ui_warn_tracking: true, |
110 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc
eptionrules.txt", | 111 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exc
eptionrules.txt", |
111 subscriptions_exceptionsurl_privacy: "https://easylist-downloads.adblockplus
.org/exceptionrules-privacy.txt" | 112 subscriptions_exceptionsurl_privacy: "https://easylist-downloads.adblockplus
.org/exceptionrules-privacy.txt" |
112 }; | 113 }; |
113 for (let key of Object.keys(prefs)) | 114 for (let key of Object.keys(prefs)) |
114 { | 115 { |
115 Object.defineProperty(modules.prefs.Prefs, key, { | 116 Object.defineProperty(modules.prefs.Prefs, key, { |
116 get() | 117 get() |
117 { | 118 { |
118 return prefs[key]; | 119 return prefs[key]; |
119 }, | 120 }, |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 reply(undefined); | 438 reply(undefined); |
438 } | 439 } |
439 ); | 440 ); |
440 } | 441 } |
441 else if (typeof response != "undefined") | 442 else if (typeof response != "undefined") |
442 { | 443 { |
443 reply(response); | 444 reply(response); |
444 } | 445 } |
445 } | 446 } |
446 }); | 447 }); |
447 | |
448 window.Cu = { | |
449 import() | |
450 { | |
451 return { | |
452 Services: { | |
453 vc: { | |
454 compare(v1, v2) | |
455 { | |
456 return parseFloat(v1) - parseFloat(v2); | |
457 } | |
458 } | |
459 } | |
460 }; | |
461 } | |
462 }; | |
463 | 448 |
464 let filters = [ | 449 let filters = [ |
465 "@@||alternate.de^$document", | 450 "@@||alternate.de^$document", |
466 "@@||der.postillion.com^$document", | 451 "@@||der.postillion.com^$document", |
467 "@@||taz.de^$document", | 452 "@@||taz.de^$document", |
468 "@@||amazon.de^$document", | 453 "@@||amazon.de^$document", |
469 "||biglemon.am/bg_poster/banner.jpg", | 454 "||biglemon.am/bg_poster/banner.jpg", |
470 "winfuture.de###header_logo_link", | 455 "winfuture.de###header_logo_link", |
471 "###WerbungObenRechts10_GesamtDIV", | 456 "###WerbungObenRechts10_GesamtDIV", |
472 "###WerbungObenRechts8_GesamtDIV", | 457 "###WerbungObenRechts8_GesamtDIV", |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 }, | 595 }, |
611 filter: { | 596 filter: { |
612 text: "||example.com/some-annoying-popup$popup", | 597 text: "||example.com/some-annoying-popup$popup", |
613 whitelisted: false, | 598 whitelisted: false, |
614 userDefined: true, | 599 userDefined: true, |
615 subscription: null | 600 subscription: null |
616 } | 601 } |
617 }); | 602 }); |
618 }); | 603 }); |
619 }()); | 604 }()); |
LEFT | RIGHT |