Skip to content

Instantly share code, notes, and snippets.

@filpgame
Created July 22, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filpgame/4306087183809af02752 to your computer and use it in GitHub Desktop.
Save filpgame/4306087183809af02752 to your computer and use it in GitHub Desktop.
Invite all friends to like facebook page at once
// 1 - you need to get the 'data-reactid' value manually on ul (something like '.4m.0.$0.1.$1.0.0.0.0.1').
// 2 - you need to scroll down to load all friends.
// in others versions i gonna improve this.
var friends = document.querySelectorAll("ul[data-reactid='00000000000'] li");
for(i=0;i<friends.length;i++){
friends[i].children[0].click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment