Created
March 16, 2015 05:37
-
-
Save ginoclement/e2bbe85ecf807e8dd37e to your computer and use it in GitHub Desktop.
Facebook Like Bomb
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
/* | |
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