From d05365be9ba4398a329147923bc83a6584987878 Mon Sep 17 00:00:00 2001 From: Andre <200930841+Andre-Bzk@users.noreply.github.com> Date: Sat, 28 Mar 2026 12:35:09 +0100 Subject: [PATCH] Empfehlungen und consent filter erweitert/gefixt --- src/content-script.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/content-script.js b/src/content-script.js index 7f53526..dd28d65 100644 --- a/src/content-script.js +++ b/src/content-script.js @@ -162,6 +162,13 @@ function cleanClone(node) { ".aawp-disclaimer", "[id^='div-gpt-ad-']", "[class*='adslot']", + "[id*='upscore']", + "[class*='c-ad-container']", + "[data-consent-service-id]", + ".tg-crosslinks", + ".tg-leseempfehlung", + ".c-suggestNews-container", + "[class*='c-crosslinks']", ".social-links", ".social-tooltip", "#shr-btns", @@ -472,7 +479,7 @@ function removeEditorialRecommendationSections(root) { root.querySelectorAll(selector).forEach((el) => el.remove()); }); - const headings = Array.from(root.querySelectorAll('h2, h3, h4')); + const headings = Array.from(root.querySelectorAll('h2, h3, h4, .h2, .h3, .h4, [class="h2"], [class="h3"], [class="h4"]')); for (const heading of headings) { const text = (heading.textContent || '').trim(); @@ -541,6 +548,10 @@ function isPromotionalTextBlock(text) { return true; } + if (/empfohlene redaktionelle inhalte/.test(text) || /consent-einstellungen/.test(text)) { + return true; + } + if (/kein bock auf werbung\?/.test(text)) { return true; }