LEFT | RIGHT |
(no file at all) | |
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 toggleIgnoreCategory(category) | 130 toggleIgnoreCategory(category) |
131 { | 131 { |
132 let categories = prefs.notifications_ignoredcategories; | 132 let categories = prefs.notifications_ignoredcategories; |
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 } |
| 141 }; |
| 142 |
| 143 modules.notificationHelper = { |
| 144 getActiveNotification() |
| 145 { |
| 146 }, |
| 147 shouldDisplay() |
| 148 { |
| 149 return true; |
140 } | 150 } |
141 }; | 151 }; |
142 | 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`]: { |
(...skipping 440 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 }()); |
LEFT | RIGHT |