Facebook had changed the way to invite all friends to event. Now you need to select the friends one by one. Thus it will take too much time if you have thousands of friends need to invite. For such issue, we need script for this job.
The code I came up with is:
Version 1:
javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type=”checkbox” )elms[i].click()};
Version 2:
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout(“elms["+count+"].click()”,100)}
Since now the facebook plan utilizes lazy loading, only the 1st 100 near friends are selected.
You can prevent this by scrolling in the direction of the complete belonging in the direction of the buddy checklist preceding to applying the script!
As before, the script can consider a lengthy time (several mins for a massive variety of friends) preceding to in fact picking each and every friend, so just wait.
If your near friends are not as well many, you can also produce distinctive lists of 100 near friends each, and take advantage of the script on each and every list.
I examined version1 with Chrome, other examined firefox 4 and opera. allow me know of problems or much better solutions!
many people these times reported browser crashes.
The script is most in all probability intensive for just about any increased amount of person (i could not evaluate extra than 500 :D). In case, try edition 2!
I posted a few of version: the 1st could possibly be the “normal” one. The 2nd could possibly be considered a touch slower, but must prevent browser chrashes (I hope!). I’m nonetheless operating over a speedier version, so confirm back again ;)
how you will require advantage of it:
Triple click concerning the script (version1 or version 2) to decide on it.
duplicate (ctr+C) the above script.
Go in the direction of the celebration web site and choose “invite friends”. once the menu opens, choose your buddy checklist (or just leave “all friends”). Scroll in the direction of the complete belonging in the direction of the panel, after which previous in to the url bar the script (ctr+v).
wait around a touch (maybe extra than a bit!), and you also must locate all of your buddy selected.
post the invite and you’re done!












