Created
June 1, 2018 06:17
-
-
Save jashaj/fb959c7ecc7e64b11be32e5cb570bdb3 to your computer and use it in GitHub Desktop.
Tumblr consent screen: disable all trackers
This file contains hidden or 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
| /* Tumblr has more than 300 trackers in the consent screen and there's no disable all. https://www.tumblr.com/privacy/consent | |
| You can uncheck the checkboxes with this script:*/ | |
| var labels = document.querySelectorAll('.binary-switch'); | |
| labels.forEach(function(label){ | |
| var checkbox = label.querySelector('input[type=checkbox]'); | |
| if(checkbox.checked){ | |
| label.click(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment