mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Update Phishing Black TLD & Reject Domainset Builder
This commit is contained in:
@@ -17,7 +17,8 @@ const BLACK_TLD = [
|
||||
'.shop',
|
||||
'.cool',
|
||||
'.cyou',
|
||||
'.id'
|
||||
'.id',
|
||||
'.pro'
|
||||
];
|
||||
|
||||
(async () => {
|
||||
|
||||
@@ -230,7 +230,6 @@ const threads = isCI ? cpuCount : cpuCount / 2;
|
||||
console.log(`Start deduping from black keywords/suffixes! (${previousSize})`);
|
||||
console.time(`* Dedupe from black keywords/suffixes`);
|
||||
|
||||
const toBeRemoved = new Set();
|
||||
for (const domain of domainSets) {
|
||||
let isTobeRemoved = false;
|
||||
|
||||
@@ -260,14 +259,10 @@ const threads = isCI ? cpuCount : cpuCount / 2;
|
||||
}
|
||||
|
||||
if (isTobeRemoved) {
|
||||
toBeRemoved.add(domain);
|
||||
domainSets.delete(domain);
|
||||
}
|
||||
}
|
||||
|
||||
toBeRemoved.forEach((removed) => {
|
||||
domainSets.delete(removed)
|
||||
});
|
||||
|
||||
console.timeEnd(`* Dedupe from black keywords/suffixes`);
|
||||
console.log(`Deduped ${previousSize} - ${domainSets.size} = ${previousSize - domainSets.size} from black keywords and suffixes!`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user