mirror of https://github.com/gorhill/uBlock.git
[mv3] For the time being assemble defautl lists manually
This commit is contained in:
parent
46c461c568
commit
22d03906fb
|
@ -566,15 +566,17 @@ async function main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Assemble all default lists as the default ruleset
|
// Assemble all default lists as the default ruleset
|
||||||
const contentURLs = [];
|
const contentURLs = [
|
||||||
for ( const asset of Object.values(assets) ) {
|
'https://ublockorigin.pages.dev/filters/filters.txt',
|
||||||
if ( asset.content !== 'filters' ) { continue; }
|
'https://ublockorigin.pages.dev/filters/badware.txt',
|
||||||
if ( asset.off === true ) { continue; }
|
'https://ublockorigin.pages.dev/filters/privacy.txt',
|
||||||
const contentURL = Array.isArray(asset.contentURL)
|
'https://ublockorigin.pages.dev/filters/resource-abuse.txt',
|
||||||
? asset.contentURL[0]
|
'https://ublockorigin.pages.dev/filters/unbreak.txt',
|
||||||
: asset.contentURL;
|
'https://ublockorigin.pages.dev/filters/quick-fixes.txt',
|
||||||
contentURLs.push(contentURL);
|
'https://secure.fanboy.co.nz/easylist.txt',
|
||||||
}
|
'https://secure.fanboy.co.nz/easyprivacy.txt',
|
||||||
|
'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext',
|
||||||
|
];
|
||||||
await rulesetFromURLS({
|
await rulesetFromURLS({
|
||||||
id: 'default',
|
id: 'default',
|
||||||
name: 'Ads, trackers, miners, and more' ,
|
name: 'Ads, trackers, miners, and more' ,
|
||||||
|
|
Loading…
Reference in New Issue