From cdc41a66abb8a5bb1eed27928d09015fa5c7fb32 Mon Sep 17 00:00:00 2001 From: Imre Eilertsen Date: Tue, 7 Jan 2025 07:34:59 +0100 Subject: [PATCH] Add files via upload --- .../NordicFiltersABP-Inclusion.txt | 3 ++- .../XYZPrepareFilters.py | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/NorwegianExperimentalList alternate versions/NordicFiltersABP-Inclusion.txt b/NorwegianExperimentalList alternate versions/NordicFiltersABP-Inclusion.txt index 9949484bb..12d21847a 100644 --- a/NorwegianExperimentalList alternate versions/NordicFiltersABP-Inclusion.txt +++ b/NorwegianExperimentalList alternate versions/NordicFiltersABP-Inclusion.txt @@ -6277,7 +6277,7 @@ nytid.no,tipsbladet.no#@#div.td-a-rec img ! Title: Adblock List for Finland ! Description: Finnish adblock list ! Expires: 4 days -! Last modified: Sun, 29 Dec 2024 12:52:19 +0000 +! Last modified: Mon, 06 Jan 2025 23:54:20 +0000 ! Finnish section's homepage: https://github.com/finnish-easylist-addition/finnish-easylist-addition ! License: https://unlicense.org/ ! Raportoi mainoksenestoon liittyvistä ongelmista tai estämättömistä mainoksista täällä / Please report adblocking related issues or unblocked ads at: @@ -7349,6 +7349,7 @@ tori.fi##div#banner_panorama_topmost tori.fi##div#panorama_top tori.fi##div#panorama_topmost traktorpool.fi##.billboard +treykalenteri.fi##.promotion-image ts.fi##[class="tsv3-c-common-article__contentad notloaded"] ts.fi##[data-readpeakurl^="https://app.readpeak.com/ads/"] ts.fi##div[class*="tsv3-c-common-smart noad-hideaction"] diff --git a/NorwegianExperimentalList alternate versions/XYZPrepareFilters.py b/NorwegianExperimentalList alternate versions/XYZPrepareFilters.py index 9bcfd2220..1c775084e 100644 --- a/NorwegianExperimentalList alternate versions/XYZPrepareFilters.py +++ b/NorwegianExperimentalList alternate versions/XYZPrepareFilters.py @@ -7036,6 +7036,18 @@ def prepare_domains(lines) -> str: line ) + line = re.sub( + r"^.*\$(ipaddress|network).*$", + r"", + line + ) + + line = re.sub( + r"^[a-z0-9].*\.$", + r"", + line + ) + if is_supported_domains(line) and not line == '': text += line + '\n'