Last active
August 22, 2019 12:15
-
-
Save 1d10t/32fb99fe32c329b6c2f9d8ca6bc906c3 to your computer and use it in GitHub Desktop.
follow instagam list
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
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