mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-01-02 10:30:26 +00:00
deploy: 138245154d2b937e25beba28b8ce09089f22f435
This commit is contained in:
@@ -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('^|')
|
||||
|
||||
Reference in New Issue
Block a user