Last active
December 23, 2025 06:09
-
-
Save uubzu/8e33e9e792a4cc9b6e0f6777f4db0bf3 to your computer and use it in GitHub Desktop.
Unchecking all checkboxes on twitter interest list
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
| // For use on https://twitter.com/settings/your_twitter_data/twitter_interests | |
| function uncheckAll() { | |
| let inputs = document.querySelectorAll('input[type="checkbox"]'); | |
| let delay = 0 | |
| for (let i = 0; i < inputs.length; i++) { | |
| if (inputs[i].checked) { | |
| setTimeout(() => { inputs[i].click( new Event('change') ) ; console.log(i) }, delay); | |
| delay += 1000; | |
| } else { | |
| console.log("Skipped " + i) | |
| } | |
| } | |
| } | |
| uncheckAll() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment