Microscopic corrections for Brave and TPL

This commit is contained in:
Imre Kristoffer Eilertsen
2020-04-15 22:30:00 +02:00
committed by GitHub
parent 59a88593f1
commit 4c2ca06e14
3 changed files with 9 additions and 3 deletions
@@ -124,7 +124,7 @@ msFilterList
- partners *_ad_icon
- resources dfp
-d liveads.no
-d leikjaland.is *logo.png|
-d leikjaland.is *logo.png
-d leikjaland.is bannerstopright
-d siglo.is strevda
-d trolli.is videoval_logo
@@ -1,5 +1,5 @@
[Adblock Plus 3.4]
! Version: 15April2020v3
! Version: 15April2020v3-Alpha
! Title: 🏔️ Dandelion Sprouts nordiske filtre for ryddigere nettsider (for Brave Browser)
! Translated title: Dandelion Sprout's Nordic filters for tidier websites (for Brave Browser)
! Expires: 12 hours
@@ -989,6 +989,12 @@ def prepare_tpl(lines) -> str:
line
)
line = re.sub(
r"\|$",
r"",
line
)
if is_supported_tpl(line) and not line == '':
text += line + '\r\n'
@@ -1332,7 +1338,7 @@ def prepare_brave(lines) -> str:
)
line = re.sub(
r"^(! Version: .*)",
r"(! Version: .*)",
r"\1-Alpha",
line
)