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

@@ -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('^|')