Skip to content

Instantly share code, notes, and snippets.

@broncha
Last active August 29, 2015 14:21
Show Gist options
  • Save broncha/926d25b48db27d6e15b1 to your computer and use it in GitHub Desktop.
Save broncha/926d25b48db27d6e15b1 to your computer and use it in GitHub Desktop.
Invite all friends at once
var f = document.getElementsByClassName("fbProfileBrowserListItem"); for(var i = 0; i < f.length; i++){ var _b = f.item(i).getElementsByClassName("uiButton"); if(_b.length) _b[0].click(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment