Fix Ruhr Nachrichten (amp)

This commit is contained in:
magnolia1234 2021-10-13 20:33:22 +02:00
parent fed527675c
commit e722fb2945
4 changed files with 15 additions and 5 deletions

View file

@ -381,7 +381,7 @@ var blockedRegexes = {
'qz.com': /\.tinypass\.com\//,
'reuters.com': /\.reuters\.com\/(arc\/subs\/p\.min|pf\/resources\/dist\/reuters\/js\/index)\.js/,
'rollingstone.com': /cdn\.cxense\.com\//,
'ruhrnachrichten.de': /\.tinypass\.com\//,
'ruhrnachrichten.de': /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|consent|subscriptions)-.+\.js)/,
'saechsische.de': /\.tinypass\.com\//,
'sandiegouniontribune.com': /metering\.platform\.sandiegouniontribune\.com\/v\d\/meter/,
'science-et-vie.com': /\.qiota\.com\//,

View file

@ -5,6 +5,7 @@ Post-release
Add Westfaelische Nachrichten (Germany)
Fix GElocal.it
Fix National Review
Fix Ruhr Nachrichten (amp)
* v2.3.9.0 (2021-10-10)
Add Lee Enterprises Group (local USA)

View file

@ -554,9 +554,18 @@ else if (matchDomain('rheinpfalz.de')) {
}
else if (matchDomain(['ruhrnachrichten.de', 'hellwegeranzeiger.de'])) {
let paywall = document.querySelector('.PianoContent');
if (paywall)
paywall.classList.remove('PianoContent');
let url = window.location.href;
if (!url.includes('?amp')) {
let paywall = document.querySelector('.PianoContent');
if (paywall)
paywall.classList.remove('PianoContent');
} else {
let subscr_sections = document.querySelectorAll('section[subscriptions-section="content"]');
for (let subscr_section of subscr_sections)
subscr_section.removeAttribute('subscriptions-section');
let amp_ads = document.querySelectorAll('amp-ad');
removeDOMElement(...amp_ads);
}
}
else if (matchDomain('sueddeutsche.de')) {

View file

@ -566,5 +566,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.9.2"
"version": "2.3.9.3"
}