Skip to content

Instantly share code, notes, and snippets.

@skorytnicki
Last active February 18, 2017 16:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skorytnicki/56bf729e9b46794c4cf23b4a97af6b14 to your computer and use it in GitHub Desktop.
Save skorytnicki/56bf729e9b46794c4cf23b4a97af6b14 to your computer and use it in GitHub Desktop.
Inviting all facebook friends to like your fanpage
// 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