Add Berliner Zeitung (Germany)

This commit is contained in:
magnolia1234 2021-03-20 17:16:30 +01:00
parent 9ab15bea19
commit adc49efef5
6 changed files with 28 additions and 1 deletions

View File

@ -281,6 +281,7 @@ Groupe Rossel sites (grouped in options) like
##### Germany/Austria
[Augsburger Allgemeine](https://www.augsburger-allgemeine.de) -
[Berliner Zeitung](https://www.berliner-zeitung.de) -
[Cicero](https://www.cicero.de) -
[Deutsche Wirtschafts Nachrichten](https://deutsche-wirtschafts-nachrichten.de) -
[Die Rheinpfalz](https://www.rheinpfalz.de) -

View File

@ -37,6 +37,7 @@ var allow_cookies_default = [
'atlantico.fr',
'augsburger-allgemeine.de',
'belfasttelegraph.co.uk',
'berliner-zeitung.de',
'berlingske.dk',
'bostonglobe.com',
'business-standard.com',

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Berliner Zeitung (Germany)
Add Entrepreneur
Fix-update The Saturday Paper

View File

@ -2225,6 +2225,28 @@ else if (matchDomain('rheinpfalz.de')) {
}
}
else if (matchDomain('berliner-zeitung.de')) {
let url = window.location.href;
let paywall = document.querySelector('.paywall-dialog-box');
if (url.split('?')[0].includes('.amp')) {
if (paywall) {
let preview = document.querySelector('section[subscriptions-section="content-not-granted"]');
removeDOMElement(paywall, preview);
let subscr_section = document.querySelector('section[subscriptions-section="content"]');
if (subscr_section) {
subscr_section.removeAttribute('subscriptions-section');
let amp_ads = document.querySelectorAll('amp-ad');
removeDOMElement(...amp_ads);
}
}
} else {
if (paywall) {
removeDOMElement(paywall);
window.location.href = url.split('?')[0] + '.amp';
}
}
}
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
csDone = true;

View File

@ -65,6 +65,7 @@
"*://*.bd.nl/*",
"*://*.belfasttelegraph.co.uk/*",
"*://*.bendigoadvertiser.com.au/*",
"*://*.berliner-zeitung.de/*",
"*://*.berlingske.dk/*",
"*://*.bienpublic.com/*",
"*://*.bizjournals.com/*",
@ -490,5 +491,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.2.2"
"version": "2.1.2.3"
}

View File

@ -17,6 +17,7 @@ var defaultSites =
"Barron's": "barrons.com",
"BBC History Extra": "historyextra.com",
"Belfast Telegraph (opt-in)": "belfasttelegraph.co.uk",
"Berliner Zeitung": "berliner-zeitung.de",
"Berlingske": "berlingske.dk",
"Bloomberg": "bloomberg.com",
"Bloomberg Quint (free articles only)": "bloombergquint.com",