Do you want to like every post and comment that you see on Facebook all at once? Well, it’s your lucky day.

Drag the link below to your Bookmarks Bar and click it to automatically like all the posts and comments on the page you’re on.

I Like Everything <– drag me to your bookmarks bar, go to Facebook, then click me!

Why’d I do this?

Some friends and I were playing around with Facebook’s new comment-on-enter feature and we got a large 70+ comment thread going, then people began to like every comment in the thread, so the idea for this JavaScript bookmarklet was born. I whipped it up in 15 minutes.

Facebook Like Bomb - Tons of notifications.

Source Code

If you are curious how this works, here is the abbreviated source code:

var sad = document.getElementsByTagName('button');
var happy = [];

// Select only the Like buttons. // Convert the sad NodeList to a happy Array. for (var i = 0; i < sad.length; i++) { if (sad[i] && (sad[i].title == 'Like this comment' || sad[i].title == 'Like this item')) { happy.push(sad[i]); } }

function happyFn(happy) { if (happy.length <= 0) { return; } happy[0].click();

// Wait for each Like to be processed before trying the next.
// Facebook enforces this requirement.
window.setTimeout(function() {
}, 800);

} happyFn(happy);

Get the full source code on GitHub.

Bookmarklet Source

And here is the source of the bookmarklet, perfect for copy-pasting into a convenient bookmark. Or just, drag this link to your bookmarks bar.

javascript:var s = document.getElementById('happyScript');
if (s) {
s = document.createElement('script');
s.setAttribute('src', '');
s.setAttribute('type', 'text/javascript');
s.setAttribute('id', 'happyScript');
void(0); // don't redirect


I just updated the bookmarklet to show some UI about the progress of your “like bomb”, as well as a button to stop the liking if you suddenly have a change of heart. Everyone’s bookmarklets should be updated automatically. Go here if you want to read the updated source code.

Update 2

I just fixed a bug in Firefox where clicking the bookmarklet causes the browser to redirect to a page with the message [object HTMLScriptElement] shown. You should update your bookmarklet. It turns out that you need to end all JavaScript code within links and bookmarklets with void(0); or else the browser will try to follow the link.

Update (8/23/2012)

Not sure if this still works anymore since Facebook Timeline came out. If anyone cares to modify it and send a pull request on Github, I’ll accept it.

(If you liked this, you might like How To Set Up Your Linode For Maximum Awesomeness.)

Thanks for reading! RSS Feed Icon

Feross Aboukhadijeh I'm Feross, a programmer, entrepreneur, open sorcerer, and mad scientist.

I build WebTorrent, a torrent library for the web, WebTorrent Desktop, the best desktop torrent app, and Standard, a JavaScript linter. In my free time, I build Play, a music video app and NodeFoo, a Node.js documentation site.

I also maintain 100+ packages on npm. All my code is freely accessible on my GitHub page. If you like my work, support me on Patreon. Thanks to all my awesome supporters!

Lastly, I run Study Notes, a site to help students study better and get into college, and have done that since I was in high school myself.

If you enjoyed this article, you should follow me on Twitter or sign up to get an email whenever I write something new:

Share this article with your friends: