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 { |
| 146 }, |
| 147 shouldDisplay() |
| 148 { |
| 149 return true; |
| 150 } |
| 151 }; |
| 152 |
143 let subscriptionServer = "https://easylist-downloads.adblockplus.org"; | 153 let subscriptionServer = "https://easylist-downloads.adblockplus.org"; |
144 let subscriptionDetails = { | 154 let subscriptionDetails = { |
145 [`${subscriptionServer}/easylistgermany+easylist.txt`]: { | 155 [`${subscriptionServer}/easylistgermany+easylist.txt`]: { |
146 title: "EasyList Germany+EasyList", | 156 title: "EasyList Germany+EasyList", |
147 installed: true | 157 installed: true |
148 }, | 158 }, |
149 [`${subscriptionServer}/exceptionrules.txt`]: { | 159 [`${subscriptionServer}/exceptionrules.txt`]: { |
150 title: "Allow non-intrusive advertising", | 160 title: "Allow non-intrusive advertising", |
151 installed: true | 161 installed: true |
152 }, | 162 }, |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 }, | 600 }, |
591 filter: { | 601 filter: { |
592 text: "||example.com/some-annoying-popup$popup", | 602 text: "||example.com/some-annoying-popup$popup", |
593 whitelisted: false, | 603 whitelisted: false, |
594 userDefined: true, | 604 userDefined: true, |
595 subscription: null | 605 subscription: null |
596 } | 606 } |
597 }); | 607 }); |
598 }); | 608 }); |
599 }()); | 609 }()); |
OLD | NEW |