Fix LesEchos.fr (investir)

This commit is contained in:
magnolia1234 2023-01-09 17:05:06 +01:00
parent 7e40137ec4
commit c964a4cf37
3 changed files with 3 additions and 14 deletions

View File

@ -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)

View File

@ -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 () {

View File

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