mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 22:04:19 +01:00
Add files via upload
This commit is contained in:
@@ -4259,7 +4259,7 @@ whowhatwear.co.uk#@#a[href*="/click.linksynergy"] img
|
||||
! Språknöjtral test för at kolla om ABP-brukarrapporter för YouTube går ner til 0 med den här uppförning / Language-neutral test to see if ABP user reports for YouTube plunge down to 0 with this entry
|
||||
||googlevideo.com/*&ctier=
|
||||
|
||||
! Version: 260920217
|
||||
! Version: 270920211
|
||||
! Title: Adblock List for Finland
|
||||
! Description: Finnish adblock list
|
||||
! Expires: 4 days
|
||||
@@ -4611,10 +4611,11 @@ kansanuutiset.fi##div[class*=intextad]
|
||||
karjalainen.fi##a[href="https://punamustamedia.portal.worldoftulo.com/v2/shop/dtabkaiku"]
|
||||
karjalainen.fi#?#a[href*=kiinnostuitko]:-abp-has([alt=banneri])
|
||||
karjalainen.fi,sammysatv.com##center
|
||||
kauppalehti.fi#?#aside[class] + div[class]:-abp-has(.etua-react-embed)
|
||||
kauppalehti.fi#?##coral-talk + div[class]:-abp-has(a[href^="https://www.kauppalehti.fi/kumppanisisallot/"])
|
||||
kauppalehti.fi#?#[class][data-test] ~ div[class]:-abp-has(> a[href^="https://www.kauppalehti.fi/kumppanisisallot/"])
|
||||
kauppalehti.fi#?#div[class]:not(#article-content):-abp-has(> div[class][width] > .ad)
|
||||
kauppalehti.fi#?#div[class][width]:-abp-has(> .ad)
|
||||
kauppalehti.fi,talouselama.fi#?#div[class]:-abp-has(> .lazyload-wrapper > .etua-react-embed)
|
||||
keskipohjanmaa.fi#?#.col-xs-12.col-sm-6.col-md-12:-abp-contains(mainosartikkelit)
|
||||
keskustelu.afterdawn.com###div-ad-below-message
|
||||
keskustelu.afterdawn.com##.pageWidth > div[style="min-height:90px;text-align:center;margin:auto;"]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,7 @@ OUTPUT_TPL = 'DandelionSproutsNorskeFiltre.tpl'
|
||||
OUTPUT_PRIVOXY = 'NordicFiltersPrivoxy.action'
|
||||
OUTPUT_PRIVACY = 'NordicFiltersPrivacy.txt'
|
||||
OUTPUT_UMATRIX = 'NordicFilters-uMatrixSupplement.txt'
|
||||
OUTPUT_XUL = 'NordicFiltersXULuBO.txt'
|
||||
|
||||
# function that downloads the filter list
|
||||
def download_filters() -> str:
|
||||
@@ -1981,6 +1982,66 @@ def prepare_umatrix(lines) -> str:
|
||||
|
||||
return text
|
||||
|
||||
# ——— XUL uBO version ———
|
||||
|
||||
# function that prepares the filter list for AdGuard
|
||||
def prepare_xul(lines) -> str:
|
||||
text = ''
|
||||
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"(itle:.*Dandelion Sprout.*)",
|
||||
r"\1 (for XUL uBlock Origin)",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r":not\(html, body\)",
|
||||
r":not(html):not(body)",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r".*\$removeparam.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"domain=([a-z0-9-]{1,})\.\*",
|
||||
r"domain=\1.no|\1.dk",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(^! Version: .*)",
|
||||
r"\1-Beta",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(^! If you wish to remove cookie banners .*)",
|
||||
r"\1\n! #IStandWithJustOff",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"!#include NorwegianExperimentalList%20alternate%20versions/",
|
||||
r"!#include ",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^!\+ NOT_OPTIMIZED$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
text += line + '\r\n'
|
||||
|
||||
return text
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print('Starting the script')
|
||||
@@ -1994,6 +2055,7 @@ if __name__ == "__main__":
|
||||
privoxy_filter = prepare_privoxy(lines)
|
||||
privacy_filter = prepare_privacy(lines)
|
||||
umatrix_filter = prepare_umatrix(lines)
|
||||
xul_filter = prepare_xul(lines)
|
||||
|
||||
with open(OUTPUT, "w") as text_file:
|
||||
text_file.write(text)
|
||||
@@ -2016,6 +2078,9 @@ if __name__ == "__main__":
|
||||
with open(OUTPUT_UMATRIX, "w") as text_file:
|
||||
text_file.write(umatrix_filter)
|
||||
|
||||
with open(OUTPUT_XUL, "w") as text_file:
|
||||
text_file.write(xul_filter)
|
||||
|
||||
print('The adblocker-based list versions have been generated.')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user