| 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-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 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 var params = { | 34 var params = { |
| 35 blockedURLs: "", | 35 blockedURLs: "", |
| 36 seenDataCorruption: false, | 36 seenDataCorruption: false, |
| 37 filterlistsReinitialized: false, | 37 filterlistsReinitialized: false, |
| 38 addSubscription: false, | 38 addSubscription: false, |
| 39 filterError: false | 39 filterError: false |
| 40 }; | 40 }; |
| 41 updateFromURL(params); | 41 updateFromURL(params); |
| 42 | 42 |
| 43 var modules = {}; | 43 var modules = {}; |
| 44 global.require = function(module) | 44 global.require = function(module) |
| 45 { | 45 { |
| 46 return modules[module]; | 46 return modules[module]; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 modules.utils = { | 49 modules.utils = { |
| 50 Utils: { | 50 Utils: { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 type: "message", | 292 type: "message", |
| 293 payload: { | 293 payload: { |
| 294 title: "Custom subscription", | 294 title: "Custom subscription", |
| 295 url: "http://example.com/custom.txt", | 295 url: "http://example.com/custom.txt", |
| 296 type: "add-subscription" | 296 type: "add-subscription" |
| 297 } | 297 } |
| 298 }, "*"); | 298 }, "*"); |
| 299 }, 1000); | 299 }, 1000); |
| 300 } | 300 } |
| 301 })(this); | 301 })(this); |
| OLD | NEW |