From b9c0951f2b6dd65ebff8feb0a84fa0acd43a265e Mon Sep 17 00:00:00 2001 From: mace Date: Mon, 22 Jun 2026 20:30:00 +0200 Subject: [PATCH] Filter comercials in readable --- vue/src/composables/useFeeds.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vue/src/composables/useFeeds.js b/vue/src/composables/useFeeds.js index f8679db..5ecf050 100644 --- a/vue/src/composables/useFeeds.js +++ b/vue/src/composables/useFeeds.js @@ -134,12 +134,16 @@ async function getReadable(feed, index) { }) // taz "Mehr zum Thema" related-articles teaser section. doc.querySelectorAll('#articleTeaser').forEach(el => el.remove()) - // taz subsidiary magazine promo blocks (e.g. taz FUTURZWEI): the promo - //
carries an aria-label containing "Abo". + // taz subsidiary magazine promo blocks (e.g. taz FUTURZWEI): either the + //
itself or its direct child carries an aria-label containing "Abo". doc.querySelectorAll('article[aria-label*="Abo"]').forEach(el => { const container = el.closest('section') ?? el container.remove() }) + doc.querySelectorAll('article > a[aria-label*="Abo"]').forEach(el => { + const container = el.closest('section') ?? el.closest('article') + if (container) container.remove() + }) const article = new Readability(doc).parse(); if (!article) { showMessageForXSeconds('Could not extract readable content.', 5)