mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 05:53:41 +02:00
Fix LeParisien.fr (block TinyPass paywall)
This commit is contained in:
parent
4479d243a1
commit
a2a953f24c
2 changed files with 2 additions and 13 deletions
|
@ -260,7 +260,8 @@ const blockedRegexes = {
|
|||
'spectator.co.uk': /.+\.tinypass\.com\/.+/,
|
||||
'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/,
|
||||
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
|
||||
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/
|
||||
'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/,
|
||||
'leparisien.fr': /.+\.tinypass\.com\/.+/
|
||||
};
|
||||
|
||||
const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
||||
|
|
|
@ -201,18 +201,6 @@ if (window.location.href.indexOf("the-tls.co.uk") !== -1) {
|
|||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("leparisien.fr") !== -1) {
|
||||
window.removeEventListener('scroll', this.scrollListener);
|
||||
const paywall = document.querySelector('.relative.piano-paywall.below_nav.sticky');
|
||||
removeDOMElement(paywall);
|
||||
setTimeout(function () {
|
||||
var content = document.getElementsByClassName('content');
|
||||
for (var i = 0; i < content.length; i++) {
|
||||
content[i].removeAttribute("style");
|
||||
}
|
||||
}, 300); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||
const paywall = document.querySelector('.has-paywall');
|
||||
if (paywall)
|
||||
|
|
Loading…
Reference in a new issue