Last active
February 9, 2021 20:04
-
-
Save pedrovasconcellos/db898f58700139a01ceb665ac4d126e8 to your computer and use it in GitHub Desktop.
Follow Instagram Users
This file contains hidden or 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 timer(ms) { return new Promise(res => setTimeout(res, ms)); } | |
| async function FollowInstagramUsers(amount) { | |
| for (var i = 0; i <= amount; i++) { | |
| document.getElementsByClassName("sqdOP L3NKy y3zKF ")[i].click(); | |
| console.log(i); | |
| await timer(5000); | |
| } | |
| } | |
| function wait(ms) { | |
| var start = Date.now(), | |
| now = start; | |
| while (now - start < ms) { | |
| now = Date.now(); | |
| } | |
| } | |
| function FollowInstagramUsers(amount) { | |
| for (var i = 0; i <= amount; i++) { | |
| document.getElementsByClassName("sqdOP L3NKy y3zKF ")[i].click(); | |
| console.log(i); | |
| wait(5000); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment