mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
Merge branch 'master' of git@github.com:FutaGuard/LowTechFilter.git
This commit is contained in:
commit
a268682c2c
@ -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)
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user