Add Washingtonpost.com automatic GDPR bypass

This commit is contained in:
ghost 2019-06-21 21:04:15 -07:00
parent b93c9176ac
commit 5d3c86cee4

View file

@ -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();
}
}
}