mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-06 09:14:46 +01:00
Couldn't MS have told me 2 years ago that TPL entries were "www."-sensitive?!
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -578,6 +578,12 @@ def prepare_tpl(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r".*[a-z0-9]//\$.*$",
|
||||
"",
|
||||
line
|
||||
)
|
||||
|
||||
# TO-DO: Figure out how to make this NOT apply to lines that have the character "!" in them.
|
||||
line = re.sub(
|
||||
"/",
|
||||
@@ -909,6 +915,12 @@ def prepare_tpl(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^-d (.*)",
|
||||
r"-d \1\n-d www.\1",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(.*)check out https://www\.i-dont-care-about-cookies\.eu/",
|
||||
r"\1check out https://easylist-downloads.adblockplus.org/easylist-cookie.tpl (Can also be subscribed to from https://raw.githack.com/collinbarrett/FilterLists/master/data/TPLSubscriptionAssistant.html)",
|
||||
|
||||
Reference in New Issue
Block a user