Skip to content

Instantly share code, notes, and snippets.

@1d10t
Last active August 22, 2019 12:15
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 1d10t/32fb99fe32c329b6c2f9d8ca6bc906c3 to your computer and use it in GitHub Desktop.
Save 1d10t/32fb99fe32c329b6c2f9d8ca6bc906c3 to your computer and use it in GitHub Desktop.
follow instagam list
const tout = 10*1000;
let skip = 0, lbsc = 0;
setInterval(_ => {
if(skip){ skip--; lbsc = 0; return; }
const bs = [].filter.call(document.querySelectorAll('div[role="dialog"] button'), e => e.innerText=='Follow'), bsc = bs.length;
if(bsc){
if(bsc == lbsc){ skip = Math.round(5*60*1000/tout); return; }
bs[Math.floor(bsc*Math.random())].click();
lbsc = bsc;
}
}, tout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment