Skip to content

Instantly share code, notes, and snippets.

@pedrovasconcellos
Last active February 9, 2021 20:04
Show Gist options
  • Save pedrovasconcellos/db898f58700139a01ceb665ac4d126e8 to your computer and use it in GitHub Desktop.
Save pedrovasconcellos/db898f58700139a01ceb665ac4d126e8 to your computer and use it in GitHub Desktop.
Follow Instagram Users
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