Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created June 9, 2011 12:35
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 kopiro/1016645 to your computer and use it in GitHub Desktop.
Save kopiro/1016645 to your computer and use it in GitHub Desktop.
Set "I like" on all post in the Facebook page
javascript:
var likes = document.getElementsByClassName("like_link");
for(var i=0;i<likes.length;i++) {
var l = likes[i];
if (l.children[0].innerHTML.match(/non/i)) continue;
l.click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment