Chore: read request stream line by line

This commit is contained in:
SukkaW
2023-06-14 23:15:21 +08:00
parent 8a77541ce7
commit bf4c92cc5d
6 changed files with 57 additions and 33 deletions

View File

@@ -8,7 +8,7 @@ const HOSTS = [
['https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts', false]
]
const ADGUARD_FILTERS = [
const ADGUARD_FILTERS = /** @type {const} */([
// Easy List
[
'https://easylist.to/easylist/easylist.txt',
@@ -177,7 +177,7 @@ const ADGUARD_FILTERS = [
'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty.txt',
'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty-cname.txt',
'https://raw.githubusercontent.com/brave/adblock-lists/master/coin-miners.txt'
];
]);
const PREDEFINED_WHITELIST = [
'localhost',