Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created February 27, 2018 23:53
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 LevitatingBusinessMan/60a407096fe5148b4eee11b9cb053990 to your computer and use it in GitHub Desktop.
Save LevitatingBusinessMan/60a407096fe5148b4eee11b9cb053990 to your computer and use it in GitHub Desktop.
Insta follow all
function start(){
let x = document.getElementsByClassName("_qv64e");
if(x.length){
let i = 0;
setInterval( function () {
if (x.length > i){
if (x[i].innerHTML == "Follow" || x[i].innerHTML == "Volgen"){
x[i].click();
}
i++;
}
}, 50);
}else{
console.log("No follow button found");}
}
//Creating the start button
let btn = document.createElement("BUTTON");
let t = document.createTextNode("Follow ALL");
btn.appendChild(t);
btn.setAttribute("style", "background:#3897f0; color: #fff; border-radius:3px; border: #3897f0; height: 30px; cursor: pointer;");
btn.setAttribute("onclick", "start();");
$("._lfwfo._euzqy").append(btn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment