Skip to content

Instantly share code, notes, and snippets.

@slant
Last active December 19, 2015 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slant/5880578 to your computer and use it in GitHub Desktop.
Save slant/5880578 to your computer and use it in GitHub Desktop.
Bookmarklet to auto-accept Facebook group requests.
javascript:var buttons=document.getElementsByClassName('uiButtonText');var add_buttons=new Array;for(var b=0;b<buttons.length;b++){if(buttons[b].innerText=='Add'){add_buttons.push(buttons[b])}};for(var b=0;b<add_buttons.length;b++){add_buttons[b].click()};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment