Received the green light for "Swedish List"

This commit is contained in:
Imre Kristoffer Eilertsen
2021-03-04 20:57:17 +01:00
committed by GitHub
parent 40b954f000
commit cf099331a7
3 changed files with 1957 additions and 13 deletions
@@ -64,8 +64,10 @@ nakenprat.com gratisxxx.no image block
118.dk track.adform.net * block
startsiden.no widgets.sprinklecontent.com * block
musikknyheter.no widgets.sprinklecontent.com * block
discoveryplus.* akamaihd.net other block
discoveryplus.* dnitv.com other block
discoveryplus.no akamaihd.net other block
discoveryplus.dk akamaihd.net other block
discoveryplus.no dnitv.com other block
discoveryplus.dk dnitv.com other block
vgtv.no adnxs.com * block
! 🇳🇴: Hovedsaklig for AdGuard
! 🇳🇴🏞: Hovudsakleg for AdGuard
@@ -87,7 +89,8 @@ in-addr.arpa 178.79.136.45 * allow
! Was supposed to be synced often with https://raw.githubusercontent.com/DandelionSprout/adfilt/master/EmptyPaddingRemover.txt, which has not been the case.
! Posten's new parcel tracker, fixes the form for giving them delivery information (doorbell name/number)
! Makes articles that would be counted as ads anywhere else on SeHer, show up on that page.
discoveryplus.* prod-adops-proxy.dnitv.net * block
discoveryplus.no prod-adops-proxy.dnitv.net * block
discoveryplus.dk prod-adops-proxy.dnitv.net * block
! Attempting to fix a problem with voting online on Idol Norway
! Attempts to resolve how some frontpage articles are hard to open
! 🇳🇴: Får Discovery+ sin påloggingsside til å vises riktig
File diff suppressed because it is too large Load Diff
@@ -728,7 +728,7 @@ def prepare_abp(lines) -> str:
)
line = re.sub(
r"([a-z*][=|])auth.discoveryplus\.\*\|~auth.discoveryplus.it\|~auth.discoveryplus.es",
r"([a-z*][=|])auth.discoveryplus\.\*",
r"\1auth.discoveryplus.no|auth.discoveryplus.dk",
line
)
@@ -1803,13 +1803,13 @@ def prepare_umatrix(lines) -> str:
)
line = re.sub(
r"discoveryplus\.\*\|~discoveryplus.it\|~discoveryplus.es",
r"discoveryplus\.\*",
r"discoveryplus.no|discoveryplus.dk",
line
)
line = re.sub(
r"auth.discoveryplus\.\*\|~auth.discoveryplus.it\|~auth.discoveryplus.es",
r"auth.discoveryplus\.\*",
r"auth.discoveryplus.no|auth.discoveryplus.dk",
line
)
@@ -1958,7 +1958,7 @@ if __name__ == "__main__":
import requests
import re
SOURCES = ['https://raw.githubusercontent.com/DandelionSprout/adfilt/master/NorwegianList.txt']
SOURCES = ['https://raw.githubusercontent.com/DandelionSprout/adfilt/master/NorwegianList.txt', 'https://raw.githubusercontent.com/DandelionSprout/Swedish-List-for-Adblock-Plus/main/Swedish%20List%20for%20Adblock%20Plus.txt']
UNSUPPORTED_ABP = ['$important', ',important', '$redirect=', ',redirect=',
':style', '##+js', '.*#' , 'dk,no##', '!#if', '!#endif', '!+ ', '##^', '!#i', '$app', ':not(:-abp-', '$csp=upgrade-insecure-requests', '$removeparam', 'badfilter']
@@ -2557,13 +2557,13 @@ def prepare_abp(lines) -> str:
)
line = re.sub(
r"([a-z*][=|])discoveryplus\.\*\|~discoveryplus.it\|~discoveryplus.es",
r"([a-z*][=|])discoveryplus\.\*",
r"\1discoveryplus.no|discoveryplus.dk",
line
)
line = re.sub(
r"([a-z*][=|])auth.discoveryplus\.\*\|~auth.discoveryplus.it\|~auth.discoveryplus.es",
r"([a-z*][=|])auth.discoveryplus\.\*",
r"\1auth.discoveryplus.no|auth.discoveryplus.dk",
line
)