mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 13:51:08 +01:00
Add files via upload
This commit is contained in:
@@ -4619,6 +4619,12 @@ def prepare_ag(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r",~inline-script$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
text += line + '\n'
|
||||
|
||||
return text
|
||||
@@ -4920,6 +4926,17 @@ def prepare_abp(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"/ument(,|$)",
|
||||
r"/\1",
|
||||
line
|
||||
)
|
||||
line = re.sub(
|
||||
r",match-case(,|$)",
|
||||
r"\1",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_abp(line):
|
||||
text += line + '\n'
|
||||
|
||||
@@ -5336,6 +5353,12 @@ def prepare_tpl(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^\+d [a-z]{1,}$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_tpl(line):
|
||||
text += line + '\n'
|
||||
|
||||
@@ -5702,6 +5725,12 @@ def prepare_hosts(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"([0-9a-z].*)\$.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_hosts(line):
|
||||
text += line + '\n'
|
||||
|
||||
@@ -5872,6 +5901,12 @@ def prepare_domains(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"([0-9a-z].*)\$.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_domains(line):
|
||||
text += line + '\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user