Restore the “Comment” Button on Facebook [Greasemonkey]
Script Last Updated (January 25, 2012). Now works with the sidebar ticker too. Detailed changelog below.
Earlier today, Facebook dropped the comment button. And a lot of people have been complaining about this change.
My Class XI annual exams ended today (Okay. Computer Science is still left. But who studies for it anyway? =P), so I was kind of jobless had some free time on my hands. Also, I hadn’t really coded anything in a long time. I was a little tired. But since coding has somewhat of a therapeutic effect on me, I decided to work on a Greasemonkey script to restore the comment button.
I ran into a few hurdles while working on the script. But I don’t really feel like writing about it right now. Still kind of tired, you see. Some other time, perhaps.
To my knowledge, it works perfectly fine with Firefox(Greasemonkey required), Chrome and Opera. But in case you find any bugs, you can report them in the comments below or just shoot me an email.
Download v1.20 (Updated January 25, 2012)
Changelog
- v1.20 (January 25, 2012)
- NEW: Added support for the real-time ticket in the sidebar.
- Improved implementation.
- v1.11 (March 25, 2011)
- Added https support.
- v1.10 (March 17, 2011)
- NEW: Facebook resized the comment box to allow one line. Added functionality to dynamically resize the comment box.
- BUGFIX: Sometimes, the script used run too early and comment boxes didn’t get changed. Added live binding of focus and blur events to comment boxes.
- v1.05 (March 16, 2011)
- First public release
| This entry was posted by Bhuwan on March 16, 2011 at 11:21 PM, and is filed under Facebook, Greasemonkey, Hacks. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
Good job. But I won’t be needing it. However, this should cause your blog to explode with search engine traffic though. :D
about 2 years ago
And ’tis imprudent to like one’s own page, young padawan.
about 2 years ago
If it were a facebook status or wall post, I’d agree. But for something external, like a blog post or a website, I “like” my own so that it shows up on my friends’ facebook newsfeeds
.
about 2 years ago
Great work, man. A lot of people with clumsy pinkies are thanking you. Might wanna bug-check in Chrome 10, though; it displays erratically if at all.
about 2 years ago
Thanks Dave
It works perfectly fine on Chrome 10 here. Could you give me some steps to reproduce the problem you’re describing?
about 2 years ago
I think the problem you described should no longer occur in v1.10.
Let me know if it’s still there.
about 2 years ago
Bhuwan, Sorry I didn’t catch your reply sooner, as it seems I wasn’t subscribed. You nailed it with the update! Everything works perfectly now. Thanks again for such a lifesaving little script.
about 2 years ago
Glad to hear that :D
about 2 years ago
does it works on Safari????
about 2 years ago
Haven’t tested on Safari yet. But with SIMBL and GreaseKit installed, it should work.
Read How to run Greasemonkey scripts in Safari for installation instructions.
about 2 years ago
You should add an @include for the https Facebook variant. I always use https and the script fails there :-) I fixed it on my end anyway.
about 2 years ago
Thanks. Updated
.
about 1 year ago
Hello, your script is great, but it breaks comments for the new timeline “sidebar”.
Here is a a fix :
Replace:
jQuery(“.enter_submit”).removeClass(“enter_submit”);
With
popupComments = jQuery(“.uiContextualDialogContent .enter_submit”);
jQuery(“.enter_submit”).not(popupComments).removeClass(“enter_submit”);
about 1 year ago
Thanks Raphael. I didn’t realize the script broke with the sidebar ticker.
I have updated the script to work with the ticker. However, I didn’t use your modification as it wouldn’t have added the comment button to the sidebar. Thanks though!
Let me know if the script breaks anything else. I don’t have a lot of time to test it.