Last active
February 18, 2017 16:46
-
-
Save skorytnicki/56bf729e9b46794c4cf23b4a97af6b14 to your computer and use it in GitHub Desktop.
Inviting all facebook friends to like your fanpage
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
// Open the friends' list and paste the script to the browser's console | |
// Tested in Chrome | |
var buttons = document.querySelectorAll('li.fbProfileBrowserListItem .uiButton'); | |
for (var x = 0; x<buttons.length; x++) { | |
(function(num){ | |
buttons[num].click(); | |
}(x)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment