Skip to content

Instantly share code, notes, and snippets.

@WebDevLuke
Created February 9, 2020 19:09
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 WebDevLuke/eca02f6c363a46f04b967bef16208148 to your computer and use it in GitHub Desktop.
Save WebDevLuke/eca02f6c363a46f04b967bef16208148 to your computer and use it in GitHub Desktop.
For when you can't click 'follow' on Twitter fast enough...
let buttons = document.querySelectorAll('div[role="button"');
for(let button in buttons) {
if(buttons[button].textContent.trim() === 'Follow') {
buttons[button].click()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment