Skip to content

Instantly share code, notes, and snippets.

@uubzu
Last active December 23, 2025 06:09
Show Gist options
  • Select an option

  • Save uubzu/8e33e9e792a4cc9b6e0f6777f4db0bf3 to your computer and use it in GitHub Desktop.

Select an option

Save uubzu/8e33e9e792a4cc9b6e0f6777f4db0bf3 to your computer and use it in GitHub Desktop.
Unchecking all checkboxes on twitter interest list
// 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