Skip to content

Instantly share code, notes, and snippets.

@ssv445
Last active August 25, 2025 22:52
Show Gist options
  • Save ssv445/6ebefcf436ae105f321e72ad12e20d2a to your computer and use it in GitHub Desktop.
Save ssv445/6ebefcf436ae105f321e72ad12e20d2a to your computer and use it in GitHub Desktop.
Twitter Interest List Reset Script (One Liner)
const checkboxes = document.querySelectorAll('input[type=checkbox]');
let index = 0;
(function uncheckNext() { if (index >= checkboxes.length) return; try { if (checkboxes[index].checked) { checkboxes[index].click(); console.log(`Unchecked checkbox at index ${index}`); } else { console.log(`Checkbox at index ${index} is already unchecked`); } index++; setTimeout(uncheckNext, 1000); } catch (error) { console.error('Error while unchecking checkbox:', error); setTimeout(uncheckNext, 5000); } })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment