mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Update Reject Data Source
This commit is contained in:
parent
ea1acf1bd3
commit
4f0877690c
@ -200,7 +200,10 @@ export const ADGUARD_FILTERS: AdGuardFilterSource[] = [
|
|||||||
],
|
],
|
||||||
// GameConsoleAdblockList
|
// GameConsoleAdblockList
|
||||||
// Update almost once per 1 to 3 months, let's set a 10 days cache ttl
|
// Update almost once per 1 to 3 months, let's set a 10 days cache ttl
|
||||||
['https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt', null],
|
[
|
||||||
|
'https://cdn.jsdelivr.net/gh/DandelionSprout/adfilt@master/GameConsoleAdblockList.txt',
|
||||||
|
['https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt']
|
||||||
|
],
|
||||||
// PiHoleBlocklist
|
// PiHoleBlocklist
|
||||||
// Update almost once per 3 months, let's set a 10 days cache ttl
|
// Update almost once per 3 months, let's set a 10 days cache ttl
|
||||||
[
|
[
|
||||||
|
|||||||
@ -506,6 +506,16 @@ abstract class Triebase<Meta = any> {
|
|||||||
public [util.inspect.custom](depth: number) {
|
public [util.inspect.custom](depth: number) {
|
||||||
return this.inspect(depth);
|
return this.inspect(depth);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public merge(trie: Triebase<Meta>) {
|
||||||
|
const handleSuffix = (suffix: string[], subdomain: boolean, meta: Meta) => {
|
||||||
|
this.add(fastStringArrayJoin(suffix, '.'), subdomain, meta);
|
||||||
|
};
|
||||||
|
|
||||||
|
trie.walk(handleSuffix);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class HostnameSmolTrie<Meta = any> extends Triebase<Meta> {
|
export class HostnameSmolTrie<Meta = any> extends Triebase<Meta> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user