Skip to content

Instantly share code, notes, and snippets.

@ginoclement
Created March 16, 2015 05:37
Show Gist options
  • Save ginoclement/e2bbe85ecf807e8dd37e to your computer and use it in GitHub Desktop.
Save ginoclement/e2bbe85ecf807e8dd37e to your computer and use it in GitHub Desktop.
Facebook Like Bomb
/*
The old Facebook like bomb doesn't work anymore
http://feross.org/like-everything-on-facebook/
I wrote this a while back, I believe it still works but I'm not going to run this again.
It needs an interval, otherwise Facebook will block you very quickly.
I chose 1250 milliseconds because I thought it seemed like a reasonable wait.
*/
var links = document.getElementsByClassName('UFILikeLink');
var i = 0;
var counter = null;
function like(){
if(links[i].innerHTML == "Like"){
links[i].click();
if(i > links.length){
clearTimeout(counter);
}
}
i++;
console.log(i);
}
counter = setInterval(like, 1250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment