| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 const subscriptionServer = "https://easylist-downloads.adblockplus.org"; | 83 const subscriptionServer = "https://easylist-downloads.adblockplus.org"; | 
| 84 const easyListGermany = `${subscriptionServer}/easylistgermany+easylist.txt`; | 84 const easyListGermany = `${subscriptionServer}/easylistgermany+easylist.txt`; | 
| 85 const acceptableAds = `${subscriptionServer}/exceptionrules.txt`; | 85 const acceptableAds = `${subscriptionServer}/exceptionrules.txt`; | 
| 86 const acceptableAdsPrivacyFriendly = | 86 const acceptableAdsPrivacyFriendly = | 
| 87 `${subscriptionServer}/exceptionrules-privacy-friendly.txt`; | 87 `${subscriptionServer}/exceptionrules-privacy-friendly.txt`; | 
| 88 const redirectLink = "https://adblockplus.org/redirect?link="; | 88 const redirectLink = "https://adblockplus.org/redirect?link="; | 
| 89 | 89 | 
| 90 let modules = {}; | 90 let modules = {}; | 
| 91 window.require = function(module) | 91 window.require = function(module) | 
| 92 { | 92 { | 
| 93 return modules[module]; | 93 return modules[module.substr(module.lastIndexOf("/") + 1)]; | 
| 
 
a.giammarchi
2018/07/02 08:14:26
this is probably already fine but assumes there is
 
Jon Sonesen
2018/07/09 19:23:49
Yeah, previously there were never `/` characters b
 
Thomas Greiner
2018/07/26 10:07:59
I'd say let's go with whichever requires making fe
 
 | |
| 94 }; | 94 }; | 
| 95 | 95 | 
| 96 modules.utils = { | 96 modules.utils = { | 
| 97 Utils: { | 97 Utils: { | 
| 98 getDocLink(link) | 98 getDocLink(link) | 
| 99 { | 99 { | 
| 100 return `${redirectLink}${encodeURIComponent(link)}`; | 100 return `${redirectLink}${encodeURIComponent(link)}`; | 
| 101 }, | 101 }, | 
| 102 get appLocale() | 102 get appLocale() | 
| 103 { | 103 { | 
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 630 }, | 630 }, | 
| 631 filter: { | 631 filter: { | 
| 632 text: "||example.com/some-annoying-popup$popup", | 632 text: "||example.com/some-annoying-popup$popup", | 
| 633 whitelisted: false, | 633 whitelisted: false, | 
| 634 userDefined: true, | 634 userDefined: true, | 
| 635 subscription: null | 635 subscription: null | 
| 636 } | 636 } | 
| 637 }); | 637 }); | 
| 638 }); | 638 }); | 
| 639 }()); | 639 }()); | 
| OLD | NEW |