Fix-update Faz.net (Zeitung subdomain)

merge-requests/1/head
magnolia1234 3 years ago
parent c361265b92
commit 2480fba01d

@ -16,7 +16,7 @@ const restrictions = {
'barrons.com': /.+\.barrons\.com\/(amp\/)?article(s)?\/.+/,
'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/,
'elcomercio.pe': /.+\/elcomercio\.pe\/.+((\w)+(\-)+){3,}.+/,
'faz.net': /(www|m)\.faz\.net\/.+\.html/,
'faz.net': /^((?!\/.+\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/,
'foreignaffairs.com': /.+\.foreignaffairs\.com\/(articles|fa-caching|interviews|reviews|sites)\/.+/,
'ft.com': /.+\.ft.com\/content\//,
'gestion.pe': /.+\/gestion\.pe\/.+((\w)+(\-)+){3,}.+/,

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update Faz.net (Zeitung subdomain)
* v2.0.3.0 (2021-01-10)
Add Curbed (New York Magazine)

@ -823,7 +823,19 @@ else if (matchDomain('lescienze.it')) {
}
else if (matchDomain('faz.net')) {
let paywall = document.querySelector('#paywall-form-container-outer,.atc-ContainerPaywall');
if (matchDomain('zeitung.faz.net')) {
let paywall_z = document.querySelector('.c-red-carpet');
if (paywall_z) {
let og_url = document.querySelector('meta[property="og:url"]');
if (og_url)
window.setTimeout(function () {
window.location.href = og_url.content;
}, 500); // Delay (in milliseconds)
}
let sticky_advt = document.querySelector('.sticky-advt');
removeDOMElement(sticky_advt);
} else {
let paywall = document.querySelector('#paywall-form-container-outer, .atc-ContainerPaywall');
if (paywall) {
removeDOMElement(paywall);
let url = new URL(window.location.href);
@ -893,6 +905,7 @@ else if (matchDomain('faz.net')) {
}
});
}
}
}
else if (matchDomain(['elcomercio.pe', 'gestion.pe'])) {

@ -423,5 +423,5 @@
"*://*.stripe.com/*",
"*://*.userzoom.com/*"
],
"version": "2.0.3.0"
"version": "2.0.3.1"
}
Loading…
Cancel
Save