Last active
May 23, 2016 20:56
-
-
Save dunglas/2365137 to your computer and use it in GitHub Desktop.
Invite all your Facebook friends (v3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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