Facebook Like All Hack

var sad= document.getElementsByTagName(‘*’);
var happy=[]
var halt = false;
for(var i=0;i<sad.length;i++)
{
if(sad && (sad[i].title==’Like this’ || sad[i].title==’Like this comment’))
{
happy.push(sad[i]);
}
}

var happyDiv = document.createElement(‘div’);
happyDiv.innerHTML=”

0 of “+ happy.length+ ” items liked.

‘;
document.getElementsByTagName(‘body’)[0].appendChild(happyDiv);

function LikeAll(happy)
{
if(halt || !happy || !happy.length)
{
document.getElementById(‘happyStatus’).innerHTML = ‘Done!’;
return;
}
happy[0].click();
happy[0].style.color=”#FF0000″;
var likeCount = $(“#happyDivId span”);
likeCount.innerHTML = parseInt(likeCount.innerHTML)+1;
window.setTimeout(function(){
LikeAll(happy.splice(1));
},5000);
}
LikeAll(happy);

function haltFn()
{
halt = true;
return false;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s