mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 22:04:30 +01:00
Add files via upload
Certified "How long had that syntax error been there?" moment.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
itle: 🏔️ Dandelion Sprouts nordiske filtre for ryddigere nettsider (for AdGuard)
|
||||
! Title 🇬🇧: Dandelion Sprout's Nordic filters for tidier websites
|
||||
! Title: 🏔️ Dandelion Sprouts nordiske filtre for ryddigere nettsider (for AdGuard)
|
||||
! Title 🇬🇧: Dandelion Sprout's Nordic filters for tidier websites (for AdGuard)
|
||||
! Last modified: 18August2025v1
|
||||
! Expires: 18 hours
|
||||
! Lisens / Licence: https://github.com/DandelionSprout/adfilt/blob/master/LICENSE.md
|
||||
|
||||
@@ -36,7 +36,7 @@ def prepare_ag(lines) -> str:
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"^.*(itle:.*Dandelion Sprout.*)",
|
||||
r"^(! Title.*Dandelion Sprout.*)$",
|
||||
r"\1 (for AdGuard)",
|
||||
line
|
||||
)
|
||||
@@ -89,24 +89,6 @@ def prepare_ag(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^!.*PFBLOCKERNG.*$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
":-abp-has\(",
|
||||
":has(",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
":-abp-contains\(",
|
||||
":has-text(",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^!#include NorwegianExperimentalList%20alternate%20versions/NordicFilters-FirefoxAndroidUBOWorkaround\.txt",
|
||||
r"",
|
||||
|
||||
Reference in New Issue
Block a user