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

File diff suppressed because it is too large Load Diff

View File

@@ -24,7 +24,7 @@
<main class="container">
<h1>Sukka Surge Ruleset Server</h1>
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
<p>Last Updated: 2022-05-13T06:18:09.796Z</p>
<p>Last Updated: 2022-05-13T06:21:11.673Z</p>
<hr>
<br>
<ul>