Facebook Like Generator - Click all Like Button
Do you get lot of interesting articles in your Facebook timeline. And you want to click 'Like' to your friends who shared it. But, you just want to read the articles or watch the videos in your Facebook account and then give a "Like" to all the articles at once. Its like a bulk job processing - completing all the tasks at once - Auto click Like button to all post. You can do this with the Javascript code in this article. I have tested this code in Chrome and Firefox browsers only.Automatically Give Like in Your Facebook
For this code to work, first you have to login to your Facebook Account and then follow the steps explained.- To write the code, Open console window from your browser. Use these keys for corresponding browser:
- Firefox (F12) , Chrome ( Ctrl + Shift + j)
- Browser will open a window and bottom of the page with tabs - "Inspector", "Console", "Debugger", "Style Editor" etc.,
- Choose "Console" Tab.
- Copy the code below, paste in console window and press "Enter".
var HTMLTagA= document.getElementsByTagName("a");
var cnt=0;
var i=0;
var TimerFunCall = setInterval(myTimer, 50);
function myTimer() {
if (i<HTMLTagA.length)
{ if(HTMLTagA[i].outerHTML.contains('UFILikeLink'))
{ cnt = cnt + 1;
console.log ("Like Count: " + cnt);
HTMLTagA[i].click();
}
}
else
{ console.log('Total HREF Links Processed: ' + HTMLTagA.length);
clearInterval(TimerFunCall);
}
i=i+1;
return i;
}
Precautions to remember before executing the code:
- Please make sure that you don't have any unsaved work in the Firefox or Chrome or any browser before executing this code.
- In case if you want to stop the execution of the code in middle, then type the "clearInterval(TimerFunCall);" in console and press Enter key.