Last active
July 2, 2018 10:21
-
-
Save GroomedGorilla/38ad0bad9b618d0a94a9f9b20e8864e9 to your computer and use it in GitHub Desktop.
Snippet to untick all (~266) Partner boxes when managing GDPR settings on www.getsurrey.co.uk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FIRST ADD ID OF CHOICE (IN MY CASE 'bob' TO THE LIST YOU WISH TO UNTICK) | |
var a = document.getElementById('bob') | |
[...a.querySelectorAll('.gdpr-checkbox')].forEach(box => { | |
box.getElementsByTagName('input')[0].checked = false; | |
}) | |
//The site seems to have a script that re-ticks all boxes from time to time, so be sure to click the submit button with | |
//your console open and all boxes unticked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment