Created
June 30, 2020 20:05
-
-
Save phocks/c6f595861664c04730d57b1d2c14c3b3 to your computer and use it in GitHub Desktop.
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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
var buttons = document.querySelectorAll(".follow_button"); | |
buttons.forEach(async button => { | |
button.click(); | |
await sleep(2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment