mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:47:47 +01:00
Fix Ad.nl/Ed.nl (cookie)
Fix for new cookie-scheme (drop specific cookie).
This commit is contained in:
parent
5965492e3e
commit
f797c0ddec
3 changed files with 13 additions and 8 deletions
|
@ -181,6 +181,12 @@ const remove_cookies_select_hold = {
|
|||
|
||||
// select only specific cookie(s) to drop from remove_cookies domains
|
||||
const remove_cookies_select_drop = {
|
||||
'.ad.nl': ['temptationTrackingId'],
|
||||
'.www.ad.nl': ['none'],
|
||||
'www.ad.nl': ['none'],
|
||||
'.ed.nl': ['temptationTrackingId'],
|
||||
'.www.ed.nl': ['none'],
|
||||
'www.ed.nl': ['none'],
|
||||
'www.nrc.nl': ['counter']
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,9 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) {
|
|||
if (window.location.href.indexOf("bloomberg.com") !== -1) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const fence = document.querySelector('.fence-body');
|
||||
if (fence)
|
||||
if (fence){
|
||||
fence.classList.remove('fence-body');
|
||||
}
|
||||
const paywall = document.getElementById('paywall-banner');
|
||||
removeDOMElement(paywall);
|
||||
});
|
||||
|
@ -128,15 +129,12 @@ if (window.location.href.indexOf('telegraaf.nl') !== -1) {
|
|||
if (paywall) {
|
||||
window.location.reload(true);
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}, 1000); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf('ed.nl') !== -1) {
|
||||
const paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
|
||||
if (paywall) {
|
||||
paywall.remove();
|
||||
paywall = null;
|
||||
}
|
||||
if (window.location.href.indexOf('ad.nl') !== -1 || window.location.href.indexOf('ed.nl') !== -1) {
|
||||
let paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1) {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"*://*.bloomberg.com/*",
|
||||
"*://*.businessinsider.com/*",
|
||||
"*://*.caixinglobal.com/*",
|
||||
"*://*.ad.nl/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.haaretz.co.il/*",
|
||||
"*://*.lemonde.fr/*",
|
||||
|
|
Loading…
Reference in a new issue