From 0c540b46379be040e55e6bc6bb5d1d5decf7f768 Mon Sep 17 00:00:00 2001 From: Tone <66808319+Tone866@users.noreply.github.com> Date: Thu, 11 May 2023 21:25:13 +0200 Subject: [PATCH] added script to deleted elements in CaschyBridge (#3391) * added script to deleted elements Now it works much better with included content like twitter, e.g. in this article: https://stadt-bremerhaven.de/1password-mit-android-14-wird-man-passkeys-in-chrome-und-apps-unterstuetzen/ * Update CaschyBridge.php * Update CaschyBridge.php --- bridges/CaschyBridge.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index b79ae6e1..5f463852 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -55,7 +55,10 @@ class CaschyBridge extends FeedExpander private function addArticleToItem($item, $article) { // remove unwanted stuff - foreach ($article->find('div.video-container, div.aawp, p.aawp-disclaimer, iframe.wp-embedded-content, div.wp-embed, p.wp-caption-text') as $element) { + foreach ( + $article->find('div.video-container, div.aawp, p.aawp-disclaimer, iframe.wp-embedded-content, + div.wp-embed, p.wp-caption-text, script') as $element + ) { $element->remove(); } // reload html, as remove() is buggy