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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 if (blocked.indexOf(url) >= 0) | 193 if (blocked.indexOf(url) >= 0) |
194 return new modules.filterClasses.BlockingFilter(); | 194 return new modules.filterClasses.BlockingFilter(); |
195 else | 195 else |
196 return null; | 196 return null; |
197 } | 197 } |
198 } | 198 } |
199 }; | 199 }; |
200 | 200 |
201 modules.cssRules = { | 201 modules.cssRules = { |
202 CSSRules: { | 202 CSSRules: { |
203 getRulesForDomain: function(domain, specificOnly) { } | 203 getRulesForDomain: function(domain) { } |
204 } | 204 } |
205 }; | 205 }; |
206 | 206 |
207 var notifierListeners = []; | 207 var notifierListeners = []; |
208 modules.filterNotifier = { | 208 modules.filterNotifier = { |
209 FilterNotifier: { | 209 FilterNotifier: { |
210 addListener: function(listener) | 210 addListener: function(listener) |
211 { | 211 { |
212 if (notifierListeners.indexOf(listener) < 0) | 212 if (notifierListeners.indexOf(listener) < 0) |
213 notifierListeners.push(listener); | 213 notifierListeners.push(listener); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 type: "message", | 297 type: "message", |
298 payload: { | 298 payload: { |
299 title: "Custom subscription", | 299 title: "Custom subscription", |
300 url: "http://example.com/custom.txt", | 300 url: "http://example.com/custom.txt", |
301 type: "add-subscription" | 301 type: "add-subscription" |
302 } | 302 } |
303 }, "*"); | 303 }, "*"); |
304 }, 1000); | 304 }, 1000); |
305 } | 305 } |
306 })(this); | 306 })(this); |
LEFT | RIGHT |