Merge branch 'master' of git@github.com:FutaGuard/LowTechFilter.git

This commit is contained in:
Yu8n 2025-04-16 08:17:04 +08:00
commit a268682c2c
No known key found for this signature in database
3 changed files with 174 additions and 4 deletions

View File

@ -79,9 +79,10 @@ async def to_hosts(filename: str, data: str, newversion: str):
with open(newfilename, "w") as output:
if name == "hosts":
pattern = r"(?<=^\|\|)\S+\.\S{2,}(?=\^)"
newoutput = "\n".join(
"0.0.0.0 " + e for e in re.findall(pattern, newdata, re.MULTILINE)
)
newoutput = ""
for e in re.findall(pattern, newdata, re.MULTILINE):
if "*" not in e:
newoutput += "0.0.0.0 " + e + "\n"
else:
newoutput = "\n".join("0.0.0.0 " + e for e in data)
output.write(newhead)

170
TW165.txt

File diff suppressed because it is too large Load Diff

View File

@ -429,6 +429,7 @@ zhihu.com##div[class^=css-]:empty
! 詐騙
||brainstudy.info^
||esun.to^
soundofhope.org##div[id="itb_ads_catfish"]
abmedia.io#%#//scriptlet('set-local-storage-item', 'isAdShowed', 'true')