[mv3] For the time being assemble defautl lists manually

This commit is contained in:
Raymond Hill 2022-09-16 16:36:09 -04:00
parent 46c461c568
commit 22d03906fb
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 11 additions and 9 deletions

View File

@ -566,15 +566,17 @@ async function main() {
);
// Assemble all default lists as the default ruleset
const contentURLs = [];
for ( const asset of Object.values(assets) ) {
if ( asset.content !== 'filters' ) { continue; }
if ( asset.off === true ) { continue; }
const contentURL = Array.isArray(asset.contentURL)
? asset.contentURL[0]
: asset.contentURL;
contentURLs.push(contentURL);
}
const contentURLs = [
'https://ublockorigin.pages.dev/filters/filters.txt',
'https://ublockorigin.pages.dev/filters/badware.txt',
'https://ublockorigin.pages.dev/filters/privacy.txt',
'https://ublockorigin.pages.dev/filters/resource-abuse.txt',
'https://ublockorigin.pages.dev/filters/unbreak.txt',
'https://ublockorigin.pages.dev/filters/quick-fixes.txt',
'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({
id: 'default',
name: 'Ads, trackers, miners, and more' ,