From 527403610852d20e89e2df8aa0835717f086539d Mon Sep 17 00:00:00 2001 From: Mynacol Date: Fri, 5 Sep 2025 15:23:00 +0000 Subject: [PATCH] [GolemBridge] Remove empty list The change in d00745c41113894e54f3ff71d73006410e3e9e20 also introduced empty lists at the start of (some, mostly multi-page) articles. This commit removes the index altogether, also removing these empty elements. Tested articles: https://www.golem.de/news/ankers-soundcore-sleep-a30-im-praxistest-diese-anc-stoepsel-verbessern-meinen-schlaf-2509-199735.html https://www.golem.de/news/neuer-bmw-ix3-angeschaut-das-anti-autonome-auto-2509-199804.html https://www.golem.de/news/kaum-umsatz-aber-milliarden-wert-chinas-neue-ki-sensation-cambricon-technologies-2509-199777.html https://www.golem.de/news/supercomputer-jupiter-eingeweiht-europaeisch-ist-hochleistungsrechnen-richtig-gedacht-2509-199789.html --- bridges/GolemBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/GolemBridge.php b/bridges/GolemBridge.php index f122aae0..d127a1e6 100644 --- a/bridges/GolemBridge.php +++ b/bridges/GolemBridge.php @@ -141,7 +141,7 @@ class GolemBridge extends FeedExpander // delete known bad elements and unwanted gallery images foreach ( $article->find('div[id*="adtile"], #job-market, #seminars, iframe, .go-article-header__title, .go-article-header__kicker, .go-label--sponsored, - .gbox_affiliate, div.toc, .go-button-bar, .go-alink-list, .go-teaser-block, .go-vh, .go-paywall, .go-index-link, .go-pagination__list, + .gbox_affiliate, div.toc, .go-button-bar, .go-alink-list, .go-teaser-block, .go-vh, .go-paywall, .go-index, .go-pagination__list, .go-gallery .[data-active="false"], .go-article-header__series') as $bad ) { $bad->remove();