Posted By

goatboy91587 on 07/31/11


Tagged

facebook


Versions (?)

Mass Friend Event and Fan Page Invite for Facebook


 / Published in: JavaScript
 

URL: http://www.brettwidmann.com

Copy and paste this code into the URL box and press enter. You will see it happen in realtime. Make sure all of your friends are loaded first, as Facebook uses lazy loading! To learn more, visit my blog post on it at http://www.brettwidmann.com/2011/07/mass-invite-friends-facebook

  1. javascript:elms=document.getElementsByName("checkableitems[]");currentFriendClick=0;friendClickTotal=elms.length;friendClickInterval = setInterval("clickCurrentFriend()", 15);
  2. function clickCurrentFriend()
  3. {
  4. if(elms[currentFriendClick].type="checkbox") elms[currentFriendClick].click();
  5. currentFriendClick++;
  6. if(currentFriendClick >= friendClickTotal) clearInterval(friendClickInterval);
  7. }

Report this snippet  

You need to login to post a comment.