Skip to content

Instantly share code, notes, and snippets.

@dunglas
Last active May 23, 2016 20:56
Show Gist options
  • Save dunglas/2365137 to your computer and use it in GitHub Desktop.
Save dunglas/2365137 to your computer and use it in GitHub Desktop.
Invite all your Facebook friends (v3)
// Scroll to the bottom of the friend list and type the following line in your console
// For checkboxes (e.g. invite to an event)
var c = document.querySelectorAll("a[role='checkbox']"); for (var i = 0; i < c.length; i++) c[i].click();
// For invite buttons (e.g. invite to like a page)
var c = document.querySelectorAll(".uiButton._1sm"); for (var i = 0; i < c.length; i++) c[i].click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment