mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-18 17:54:26 +00:00
deploy: 138245154d2b937e25beba28b8ce09089f22f435
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user