Skip to content

Instantly share code, notes, and snippets.

@mridulg
Created August 6, 2016 14:54
Show Gist options
  • Save mridulg/070dc24ceb937a2766a6dd78b989d055 to your computer and use it in GitHub Desktop.
Save mridulg/070dc24ceb937a2766a6dd78b989d055 to your computer and use it in GitHub Desktop.
FB-Event-Invite-All-Friends
// This is not my code. I don't remember the reference.
/* Paste the code below in your browser's (preferably Chrome) address bar, after you have clicked the `Invite Friends`
option and your friend list shows up. This will try to select all whose names are displayed.
*/
// Invite limit is 500 per person per event.
// It may happen that you can select only 50 at a time. No problem, do it 10 times to select 500.
// Known bugs/features : once you paste the below code, Chrome tends to remove the `javascript:` part. You'll have to type that before you run the code
javascript:var inputs = document.getElementsByClassName('_1pu2');
for(var i=0;i<inputs.length;i++)
{ inputs[i].click(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment