Fix Tagesspiegel.de (css)

master
magnolia1234 2022-08-06 10:17:38 +02:00
parent 361440e708
commit 39c82dd914
2 changed files with 8 additions and 3 deletions

View File

@ -6,11 +6,11 @@ Add Limburger.nl
Add Standaard.be
Add Substack
Add SuomenSotilas.fi
Add Tagesspiegel.de
Add Welt.de
Add Wiwo.de
Fix Australian Community Media (css)
Fix Spiegel.de (Google webcache)
Add Tagesspiegel.de
Fix The Athletic (css & amp)
Fix TheTimes.co.uk (Google webcache)
Grouping DPG Media (not ADR)

View File

@ -731,12 +731,17 @@ else if (matchDomain('spiegel.de')) {
else if (matchDomain('tagesspiegel.de')) {
let url = window.location.href;
let paywall = document.querySelector('div.Rc6, .ts-paywall-blurred');
let paywall = document.querySelector('div.article--paid > div, .ts-paywall-blurred');
if (paywall) {
removeDOMElement(paywall);
csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div.Af, [class*="ts-paywall"]');
replaceDomElementExt(url_cache, true, false, 'article, [class*="ts-paywall"]');
window.setTimeout(function () {
let ads = document.querySelectorAll('div[data-mobile-id]');
for (let elem of ads)
removeDOMElement(elem.parentNode);
}, 1000);
}
}