mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:07:47 +01:00
Fix Nrc.nl (paywall)
New paywall-overlay for specific articles (test?).
This commit is contained in:
parent
6740393e37
commit
81a30341a3
2 changed files with 13 additions and 3 deletions
|
@ -213,6 +213,15 @@ if (window.location.href.indexOf("leparisien.fr") !== -1) {
|
||||||
}, 300); // Delay (in milliseconds)
|
}, 300); // Delay (in milliseconds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||||
|
const paywall = document.querySelector('.has-paywall');
|
||||||
|
if (paywall)
|
||||||
|
paywall.classList.remove("has-paywall");
|
||||||
|
const paywall_overlay = document.querySelector('.has-paywall-overlay');
|
||||||
|
if (paywall_overlay)
|
||||||
|
paywall_overlay.classList.remove("has-paywall-overlay");
|
||||||
|
}
|
||||||
|
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
if (element) element.remove();
|
if (element) element.remove();
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
"*://*.washingtonpost.com/*",
|
"*://*.washingtonpost.com/*",
|
||||||
"*://*.economist.com/*",
|
"*://*.economist.com/*",
|
||||||
"*://*.the-tls.co.uk/*",
|
"*://*.the-tls.co.uk/*",
|
||||||
"*://*.leparisien.fr/*"
|
"*://*.leparisien.fr/*",
|
||||||
|
"*://*.nrc.nl/*"
|
||||||
],
|
],
|
||||||
"js": ["contentScript.js"]
|
"js": ["contentScript.js"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue