Left: | ||
Right: |
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-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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 let index = categories.indexOf(category); | 133 let index = categories.indexOf(category); |
134 if (index == -1) | 134 if (index == -1) |
135 categories.push(category); | 135 categories.push(category); |
136 else | 136 else |
137 categories.splice(index, 1); | 137 categories.splice(index, 1); |
138 modules.prefs.Prefs.notifications_ignoredcategories = categories; | 138 modules.prefs.Prefs.notifications_ignoredcategories = categories; |
139 } | 139 } |
140 } | 140 } |
141 }; | 141 }; |
142 | 142 |
143 modules.notificationHelper = { | |
144 getActiveNotification() { }, | |
145 shouldDisplay() { return true; } | |
Thomas Greiner
2017/10/09 10:52:59
Coding style: "Opening braces always go on their o
kzar
2017/10/09 11:13:51
Done.
| |
146 }; | |
147 | |
143 let subscriptionServer = "https://easylist-downloads.adblockplus.org"; | 148 let subscriptionServer = "https://easylist-downloads.adblockplus.org"; |
144 let subscriptionDetails = { | 149 let subscriptionDetails = { |
145 [`${subscriptionServer}/easylistgermany+easylist.txt`]: { | 150 [`${subscriptionServer}/easylistgermany+easylist.txt`]: { |
146 title: "EasyList Germany+EasyList", | 151 title: "EasyList Germany+EasyList", |
147 installed: true | 152 installed: true |
148 }, | 153 }, |
149 [`${subscriptionServer}/exceptionrules.txt`]: { | 154 [`${subscriptionServer}/exceptionrules.txt`]: { |
150 title: "Allow non-intrusive advertising", | 155 title: "Allow non-intrusive advertising", |
151 installed: true | 156 installed: true |
152 }, | 157 }, |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 }, | 595 }, |
591 filter: { | 596 filter: { |
592 text: "||example.com/some-annoying-popup$popup", | 597 text: "||example.com/some-annoying-popup$popup", |
593 whitelisted: false, | 598 whitelisted: false, |
594 userDefined: true, | 599 userDefined: true, |
595 subscription: null | 600 subscription: null |
596 } | 601 } |
597 }); | 602 }); |
598 }); | 603 }); |
599 }()); | 604 }()); |
OLD | NEW |