Skip to content

Instantly share code, notes, and snippets.

@debasishm89
Last active January 3, 2016 14:49
Show Gist options
  • Save debasishm89/8478921 to your computer and use it in GitHub Desktop.
Save debasishm89/8478921 to your computer and use it in GitHub Desktop.
var tok = window.setInterval(function() {
var total_req = 100;//change it to 200,300 etc..to send request to 200,300 people at a time. May slowdown network
var all = document.getElementsByClassName('vcard-button bt-connect bt-primary')
if (all.length < total_req)
document.body.scrollTop = document.body.scrollHeight;
else{
clearInterval(tok);window.scrollTo(0,0);
for(var i = 0 ; i <= all.length; i++){
all[i].click();}
}}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment