mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:37:47 +01:00
Fix Ruhr Nachrichten (amp)
This commit is contained in:
parent
fed527675c
commit
e722fb2945
4 changed files with 15 additions and 5 deletions
|
@ -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\//,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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')) {
|
||||
|
|
|
@ -566,5 +566,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.9.2"
|
||||
"version": "2.3.9.3"
|
||||
}
|
Loading…
Reference in a new issue