Skip to content

Instantly share code, notes, and snippets.

@alanbsmith
Created March 25, 2022 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanbsmith/8684b1db295ffb55c632504c5b3c3edc to your computer and use it in GitHub Desktop.
Save alanbsmith/8684b1db295ffb55c632504c5b3c3edc to your computer and use it in GitHub Desktop.
Uncheck all Twitter interests

Uncheck all Twtter Interests

let checkedInterests = [...document.querySelectorAll("input:checked")];

checkedInterests.forEach((input, index) => {
  // delay clicks by 2 seconds to prevent getting 503s from Twitter
  setTimeout(() => {
    console.log('clicking checkbox', index);
    input.click()
  }, 2000 * index)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment