Created
December 13, 2019 11:00
-
-
Save MayeulC/5c7219bba6b546dd7d21c5d3573f0b38 to your computer and use it in GitHub Desktop.
Microsoft consent fix
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
/* There is no way I am clicking manually trough all of these checkboxes | |
Outlook presented me a list of more than 500 ad and tracking providers with no way to disable them all. | |
The world is becoming a terrible place. GAFAM are the vilains */ | |
// p here was obtained by opening the inspector and selecting "use in console" on the provider list | |
//First try: | |
//for (let key in p.getElementsByClassName("is-checked")) { | |
// p.getElementsByClassName("is-checked")[key].getElementsByTagName("button")[0].click() | |
//} | |
//list = p.getElementsByClassName("is-checked") | |
//for (i=0; i< list.length; i++) { list[i].getElementsByTagName("button")[0].click()} | |
list = document.querySelectorAll('[aria-labelledby="options-full-advertise_options"]')[0].getElementsByClassName("pill-184") | |
for (i=0; i< list.length; i++) { list[i].click()} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment