mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:47:47 +01:00
Add Washingtonpost.com automatic GDPR bypass
This commit is contained in:
parent
b93c9176ac
commit
5d3c86cee4
1 changed files with 13 additions and 1 deletions
|
@ -44,4 +44,16 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (window.location.href.indexOf("washingtonpost.com") !== -1) {
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
document.querySelector('.gdpr-consent-container .continue-btn.button.free').click();
|
||||
|
||||
const gdprcheckbox = document.querySelector('.gdpr-consent-container .consent-page:not(.hide) #agree');
|
||||
if (gdprcheckbox) {
|
||||
gdprcheckbox.checked = true;
|
||||
gdprcheckbox.dispatchEvent(new Event('change'));
|
||||
|
||||
document.querySelector('.gdpr-consent-container .consent-page:not(.hide) .continue-btn.button.accept-consent').click();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue