deploy: 138245154d2b937e25beba28b8ce09089f22f435

This commit is contained in:
SukkaBot
2022-05-13 06:21:12 +00:00
parent d8cb686679
commit 13168a9e7c
4 changed files with 3214 additions and 1585 deletions

View File

@@ -10,7 +10,7 @@ const threads = Math.max(require('os').cpus().length, 12);
// Parse from remote hosts & domain lists
(await Promise.all([
// processHosts('https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext', true),
processHosts('https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext', true),
processHosts('https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt'),
processHosts('https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt')
])).forEach(hosts => {

View File

@@ -97,7 +97,12 @@ async function processFilterRules(filterRulesUrl) {
return;
}
if (line.startsWith('@@||')
if (line.startsWith('||') && line.endsWith('^$badfilter')) {
const domain = line.replaceAll('||', '').replaceAll('^$badfilter', '').trim();
if (rDomain.test(domain)) {
whitelistDomainSets.add(domain);
}
} else if (line.startsWith('@@||')
&& (
line.endsWith('^')
|| line.endsWith('^|')