mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Fix LesEchos.fr (investir)
This commit is contained in:
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…
Reference in New Issue
Block a user