Created
February 9, 2020 19:09
-
-
Save WebDevLuke/eca02f6c363a46f04b967bef16208148 to your computer and use it in GitHub Desktop.
For when you can't click 'follow' on Twitter fast enough...
This file contains 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
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