Once someone has added this to their bookmark toolbar and started to use it, they are likely to forget where they got it
from. And when they want to know where they got it from, they are likely to look for clues in the source code of the bookmarklet.<p>So, I humbly suggest that you add to the bookmarklet some "googleable" string such as "Author: niyazpk". When I googled on "niyazpk" just now, your Github was the fourth hit.
If you like this, check also out mine: <a href="http://alexander.kirk.at/2011/12/06/new-feature-for-hn-collapsible-threads/" rel="nofollow">http://alexander.kirk.at/2011/12/06/new-feature-for-hn-colla...</a>
It's been round for a while :)<p>My bookmarklet has also been included in this very nice browser extension: <a href="http://hckrnews.com/about.html" rel="nofollow">http://hckrnews.com/about.html</a>
I really like this. I also have the Hacker News Enhancement Suite [1] and think it is almost as good as the Reddit one.<p>----<p>[1] <a href="https://chrome.google.com/webstore/detail/bappiabcodbpphnojdiaddhnilfnjmpm" rel="nofollow">https://chrome.google.com/webstore/detail/bappiabcodbpphnojd...</a>
I'm not going to click a bookmarklet every time I read comments, definitely should be an extension or a user script.<p>Secondly the collapse button would be much better on the left side.
One usability change: put the collapse link on the left side of article title (ala reddit), this makes it quicker to find the widget since it will always be in the same place.
Or always available as a user script:<p><a href="https://arantius.com/misc/greasemonkey/hacker-news-comment-collapse.user.js" rel="nofollow">https://arantius.com/misc/greasemonkey/hacker-news-comment-c...</a><p>Also collapses by default threads below depth two.
I have been using this to provide collapsing comments for some time: <a href="https://github.com/andrewheins/HN-Comment-Hider" rel="nofollow">https://github.com/andrewheins/HN-Comment-Hider</a>
The last couple of extensions / bookmarklets that did this, did not work in Opera (at the moment that I tried them, at least). But this one does, kudos for that! I'm using it, thanks! :)
My userscript for Greasemonkey users:
<a href="http://userscripts.org/scripts/show/138037" rel="nofollow">http://userscripts.org/scripts/show/138037</a>