|
205 | 205 | var availableLists = {};
|
206 | 206 | var relocationMap = {};
|
207 | 207 | var locationOfAA = 'acceptable-ads';
|
208 |
| - let tempFLChangeMap = new Map([ |
209 |
| - ["adblock.gardar.net/is.abp.txt", "ISL"], |
210 |
| - ["raw.githubusercontent.com/cjx82630/cjxlist/cjxlist.txt", "CHN-01"], |
211 |
| - ["raw.githubusercontent.com/gioxx/filtri.txt", "ITA-01"], |
212 |
| - ["easylist-downloads.adblockplus.org/advblock.txt", "RUS-01"], |
213 |
| - ["easylist-downloads.adblockplus.org/bitblock.txt", "RUS-02"], |
214 |
| - ["easylist-downloads.adblockplus.org/easylist.txt", "easylist"], |
215 |
| - ["easylist-downloads.adblockplus.org/exceptionrules.txt", "acceptable-ads"], |
216 |
| - ["raw.githubusercontent.com/abp-filters-anti-cv/english.txt", "abp-anti-circumvension"], |
217 |
| - ["raw.githubusercontent.com/adblock-nocoin-list/nocoin.txt", "cryptocurrency"], |
218 |
| - ["easylist-downloads.adblockplus.org/easylist_noelemhide.txt", "easylist-noelemhide"], |
219 |
| - ["easylist-downloads.adblockplus.org/easylistchina.txt", "CHN-02"], |
220 |
| - ["easylist-downloads.adblockplus.org/easylistdutch.txt", "NLD"], |
221 |
| - ["easylist-downloads.adblockplus.org/easylistgermany.txt", "DEU"], |
222 |
| - ["easylist-downloads.adblockplus.org/easylistitaly.txt", "ITA"], |
223 |
| - ["easylist-downloads.adblockplus.org/easyprivacy.txt", "easyprivacy"], |
224 |
| - ["easylist-downloads.adblockplus.org/fanboy-annoyance.txt", "fanboy-annoyance"], |
225 |
| - ["easylist-downloads.adblockplus.org/fanboy-social.txt", "fanboy-social"], |
226 |
| - ["easylist-downloads.adblockplus.org/liste_fr.txt", "FRA"], |
227 |
| - ["adblock-latvian/latvian-list.txt", "LVA"], |
228 |
| - ["raw.githubusercontent.com/DandelionSprout/adfilt/NorwegianList.txt", "NOR-DNK-ISL"], |
229 |
| - ["hosts-file.net/ad-servers", "hpHosts"], |
230 |
| - ["http://adblock.ee/list.php", "EST"], |
231 |
| - ["https://easylist-downloads.adblockplus.org/antiadblockfilters.txt", "adblock-warning-rm"], |
232 |
| - ["raw.githubusercontent.com/indonesianadblockrules/subscriptions/abpindo.txt", "IDN-MYS"], |
233 |
| - ["gitcdn.xyz/adblock-iran/filter.txt", "IRN"], |
234 |
| - ["easylist-downloads.adblockplus.org/Liste_AR.txt", "ARA"], |
235 |
| - ["margevicius.lt/easylistlithuania.txt", "LTU"], |
236 |
| - ["mirror1.malwaredomains.com/files/justdomains", "malware-01"], |
237 |
| - ["pgl.yoyo.org/as/serverlist", "peter-lowe-ad"], |
238 |
| - ["raw.githubusercontent.com/EasyListHebrew/master/EasyListHebrew.txt", "ISR"], |
239 |
| - ["raw.githubusercontent.com/polish-adblock-filters/adblock.txt", "POL-01"], |
240 |
| - ["raw.githubusercontent.com/polish-privacy-filters/anti-adblock.txt", "POL-02"], |
241 |
| - ["raw.githubusercontent.com/k2jp/abp-japanese-filters/master/abp_jp.txt", "JPN"], |
242 |
| - ["raw.githubusercontent.com/szpeter80/hufilter/master/hufilter.txt", "HUN"], |
243 |
| - ["raw.githubusercontent.com/tomasko126/easylistczechandslovak/master/filters.txt", "CZE-SVK"], |
244 |
| - ["raw.githubusercontent.com/finnish-easylist-addition/Finland_adb.txt", "FIN"], |
245 |
| - ["someonewhocares.org/hosts/hosts", "dan-pollock"], |
246 |
| - ["raw.githubusercontent.com/Spam404/lists/adblock-list.txt", "Spam404"], |
247 |
| - ["stanev.org/abp/adblock_bg.txt", "BGR"], |
248 |
| - ["winhelp2002.mvps.org/hosts.txt", "mvps"], |
249 |
| - ["www.fanboy.co.nz/enhancedstats.txt", "fanboy-enhanced-tracking"], |
250 |
| - ["www.fanboy.co.nz/fanboy-antifacebook.txt", "fanboy-antifacebook"], |
251 |
| - ["raw.githubusercontent.com/adblock-korea-contrib/filter.txt", "KOR-01"], |
252 |
| - ["raw.githubusercontent.com/YousList/youslist.txt", "KOR-02"], |
253 |
| - ["raw.githubusercontent.com/Frellwits-filter-lists/Frellwits-Swedish-Filter.txt", "SWE"], |
254 |
| - ["filters.adtidy.org/extension/ublock/filters/9.txt", "SPA-POR"], |
255 |
| - ["raw.githubusercontent.com/easylist-thailand/easylist-thailand.txt", "THA"], |
256 |
| - ["easylist-downloads.adblockplus.org/easylistspanish.txt", "SPA"], |
257 |
| - ["www.fanboy.co.nz/fanboy-ultimate.txt", "fanboy-ultimate"], |
258 |
| - ["raw.githubusercontent.com/abpvn/abpvn.txt", "VIE"], |
259 |
| - ["www.malwaredomainlist.com/hostslist/hosts.txt", "malware-02"], |
260 |
| - ["www.void.gr/kargig/void-gr-filters.txt", "GRC"], |
261 |
| - ["raw.githubusercontent.com/ROad-Block/road-block-filters-light.txt", "ROU"], |
262 |
| - ["filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt", "adguard-base"], |
263 |
| - ["filters.adtidy.org/extension/ublock/filters/3.txt", "adguard-spyware"], |
264 |
| - ["filters.adtidy.org/extension/ublock/filters/14.txt", "adguard-annoyance"], |
265 |
| - ["filters.adtidy.org/extension/ublock/filters/4.txt", "adguard-social"], |
266 |
| - ["secure.fanboy.co.nz/fanboy-cookiemonster.txt", "fanboy-cookiemonster"], |
267 |
| - ["s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt", "disconnect"], |
268 |
| - ["filters.adtidy.org/extension/ublock/filters/7.txt", "JPN-01"], |
269 |
| - ["filters.adtidy.org/extension/ublock/filters/1.txt", "RUS"], |
270 |
| - ["filters.adtidy.org/extension/ublock/filters/13.txt", "TUR"] |
271 |
| - ]); |
272 |
| - |
273 | 208 | // selected lists
|
274 | 209 | var onSelectedListsLoaded = function(store) {
|
275 | 210 | var µb = µBlock;
|
|
289 | 224 | off = lists[location].off === true;
|
290 | 225 | }
|
291 | 226 | }
|
292 |
| - location = location.replace('assets/thirdparties/',''); |
293 |
| - if(tempFLChangeMap.has(location)) { |
294 |
| - let tmpLocation = location; |
295 |
| - location = tempFLChangeMap.get(location); |
296 |
| - if(off === false) { |
297 |
| - if ( /^[a-z]+:\/\//.test(tmpLocation) ) { |
298 |
| - µb.purgeFilterList(tmpLocation); |
299 |
| - } else { |
300 |
| - µb.purgeFilterList('assets/thirdparties/' + tmpLocation); |
301 |
| - } |
302 |
| - } |
303 |
| - } |
| 227 | + |
304 | 228 | availableEntry = availableLists[location];
|
305 | 229 | if ( availableEntry === undefined ) {
|
306 | 230 | µb.purgeFilterList(location);
|
|
0 commit comments