mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 00:27:27 +02:00
[HeiseBridge] removes language-info-text, add archive.is link for people without subscription (#4594)
* [HeiseBridge] removes language-info-text, add archive.is link for people without subscription * fix annoying phpcs
This commit is contained in:
@@ -138,6 +138,7 @@ class HeiseBridge extends FeedExpander
|
|||||||
}
|
}
|
||||||
// abort on heise+ articles
|
// abort on heise+ articles
|
||||||
if ($sessioncookie == '' && str_starts_with($item['title'], 'heise+ |')) {
|
if ($sessioncookie == '' && str_starts_with($item['title'], 'heise+ |')) {
|
||||||
|
$item['uri'] = 'https://archive.is/' . $item['uri'];
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +163,7 @@ class HeiseBridge extends FeedExpander
|
|||||||
// remove unwanted stuff
|
// remove unwanted stuff
|
||||||
foreach (
|
foreach (
|
||||||
$article->find('figure.branding, figure.a-inline-image, a-ad, div.ho-text, a-img,
|
$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') as $element
|
.a-toc__list, a-collapse, .opt-in__description, .opt-in__footnote, .notice-banner__text, .notice-banner__link') as $element
|
||||||
) {
|
) {
|
||||||
$element->remove();
|
$element->remove();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user