mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Fix LesEchos.fr (refresh)
This commit is contained in:
parent
8aef2350bf
commit
4e94e7ebdd
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix LesEchos.fr (refresh)
|
||||||
Fix Quartz (newsletter)
|
Fix Quartz (newsletter)
|
||||||
|
|
||||||
* v2.7.1.0 (2022-05-29)
|
* v2.7.1.0 (2022-05-29)
|
||||||
|
|
|
@ -1408,7 +1408,7 @@ else if (matchDomain('lequipe.fr')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('lesechos.fr') && window.location.href.match(/\d{6,}/)) {
|
else if (matchDomain('lesechos.fr')) {
|
||||||
if (matchDomain('investir.lesechos.fr')) {
|
if (matchDomain('investir.lesechos.fr')) {
|
||||||
if (!window.location.href.includes('/amp/')) {
|
if (!window.location.href.includes('/amp/')) {
|
||||||
let paywall = document.querySelector('div.bloc-paywall');
|
let paywall = document.querySelector('div.bloc-paywall');
|
||||||
|
@ -1423,7 +1423,7 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/\d{6,}/)) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let abo_banner = document.querySelector('div[class*="pgxf3b-2"]');
|
let abo_banner = document.querySelector('div[data-testid="paywall"]');
|
||||||
let ad_blocks = document.querySelectorAll('[class*="jzxvkd"');
|
let ad_blocks = document.querySelectorAll('[class*="jzxvkd"');
|
||||||
for (let ad_block of ad_blocks)
|
for (let ad_block of ad_blocks)
|
||||||
ad_block.setAttribute('style', 'display:none');
|
ad_block.setAttribute('style', 'display:none');
|
||||||
|
|
Loading…
Reference in a new issue