mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 22:04:30 +01:00
Major fix for AdGuard Home
This commit is contained in:
@@ -2317,6 +2317,12 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^(\|\|skatteetaten\.com\.)$",
|
||||
r"\1\n@@||norwegian.com.cdn.cloudflare.net^",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(.*ad\.\*\.no.*)",
|
||||
r"\1\n@@||ad.dep.no^\n@@||ad.hem.no^",
|
||||
@@ -3589,6 +3595,12 @@ def prepare_hosts(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"127\.0\.0\.1 ttnrd\.com$",
|
||||
"127.0.0.1 ttnrd.com www.ttnrd.com amanda.ttnrd.com katie.ttnrd.com briana.ttnrd.com sarah.ttnrd.com pamela.ttnrd.com",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"127\.0\.0\.1 \[(.*)\]",
|
||||
r":: \1",
|
||||
|
||||
Reference in New Issue
Block a user