From b60556ffb41dd5900675bb6ae7e6ccb0a0ed35b0 Mon Sep 17 00:00:00 2001 From: Mynacol Date: Tue, 12 Aug 2025 19:15:00 +0000 Subject: [PATCH] [HeiseBridge] Remove "Videos by heise" ads This seems to be a new middle-of-content self-ad. Seen on https://heise.de/-10519045 The code snippet in that case was: ```html

Videos by heise

``` Hence filtering anything with the class `ad` or `ad--inread` gets rid of it. --- bridges/HeiseBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/HeiseBridge.php b/bridges/HeiseBridge.php index b3bbf76b..35f18d57 100644 --- a/bridges/HeiseBridge.php +++ b/bridges/HeiseBridge.php @@ -163,7 +163,7 @@ class HeiseBridge extends FeedExpander // remove unwanted stuff foreach ( $article->find('figure.branding, figure.a-inline-image, a-ad, div.ho-text, a-img, - .a-toc__list, a-collapse, .opt-in__description, .opt-in__footnote, .notice-banner__text, .notice-banner__link') as $element + .a-toc__list, a-collapse, .opt-in__description, .opt-in__footnote, .notice-banner__text, .notice-banner__link, .ad, .ad--inread') as $element ) { $element->remove(); }