Fix LesEchos.fr (investir)

merge-requests/10/head
magnolia1234 1 year ago
parent 7e40137ec4
commit c964a4cf37

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Inc42
Fix LesEchos.fr (investir)
* v3.0.0.0 (2023-01-08)
Add Deutscher Fachverlag Mediengruppe (opt-in to custom sites)

@ -1532,19 +1532,7 @@ else if (matchDomain('lequipe.fr')) {
}
else if (matchDomain('lesechos.fr')) {
if (matchDomain('investir.lesechos.fr')) {
if (!window.location.href.includes('/amp/')) {
let paywall = document.querySelector('div.bloc-paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
} else {
let amp_ads = document.querySelectorAll('amp-ad');
removeDOMElement(...amp_ads);
}
} else if (window.location.pathname.startsWith('/amp/')) {
if (window.location.pathname.startsWith('/amp/')) {
ampToHtml();
} else {
window.setTimeout(function () {

@ -720,5 +720,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.0.0"
"version": "3.0.0.1"
}

Loading…
Cancel
Save