Skip to content

Instantly share code, notes, and snippets.

@CaioWzy
Created July 17, 2018 17:03
Show Gist options
  • Save CaioWzy/bde707b14012f71d8d571231a6a924c5 to your computer and use it in GitHub Desktop.
Save CaioWzy/bde707b14012f71d8d571231a6a924c5 to your computer and use it in GitHub Desktop.
GDPR Auto Accept WASHPOST
// ==UserScript==
// @name GDPR Auto Accept WASHPOST
// @namespace https://github.com/CaioWzy
// @version 0.1
// @description Auto Accept the Washington Post GDPR consent page
// @author CaioWzy
// @match https://www.washingtonpost.com/gdpr-consent/*
// @grant none
// ==/UserScript==
// run_at: document_idle
setInterval(function() {
document.getElementsByClassName('continue-btn')[0].click();
document.getElementById('agree').click();
document.getElementsByClassName('accept-consent')[0].click();
}, 500);
@JonnyRedHed
Copy link

Yes this works well. Straight onto the main washpost page. Great job, thank you. I've added to tampermonkey (Opera). I'll post back here if things change as the washpost site changes.

@JonnyRedHed
Copy link

JonnyRedHed commented Feb 15, 2019

Could you take another look at this please, as it acting odd at times now like its having trouble clicking or getting past this consent page.
Thanks.

@CaioWzy
Copy link
Author

CaioWzy commented May 24, 2019

How so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment