News for hackers. Stuff that matters.
Re:Collapsible comments for Hacker News by hollerith on Tuesday September 04, 2012 @11:33AM (#4474987)
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.

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.

Re:Collapsible comments for Hacker News by akirk on Tuesday September 04, 2012 @08:47AM (#4474277)
If you like this, check also out mine: http://alexander.kirk.at/2011/12/06/new-feature-for-hn-colla... It's been round for a while :)

My bookmarklet has also been included in this very nice browser extension: http://hckrnews.com/about.html

Re:Collapsible comments for Hacker News by Tomis02 on Tuesday September 04, 2012 @12:14PM (#4475160)
This new one is better. I used yours for a while some time ago and it's extremely annoying that the collapsed comment is not aligned to the rest of the comments at the same depth. Gives you a weird feeling that you collapsed the parent and the next one is its child. When you randomly collapse comments the result may be a mess where you're not exactly sure who answered to who.

Also, your collapse/uncollapse button is placed on the right instead of left so its X position may vary, making it a bit more difficult to collapse comments in a series.

Good effort though.

Re:Collapsible comments for Hacker News by akirk on Tuesday September 04, 2012 @12:24PM (#4475209)
Well, a bug report would have been nice then :)

Of course this one could have some advantages, I was just pointing out my bookmarklet that also provides that "collapse whole thread" feature.

That Chrome extension also has a neat "new postings" feature.

Re:Collapsible comments for Hacker News by Tomis02 on Friday September 07, 2012 @09:44AM (#4488968)
The "collapse whole thread" feature is very cool (and useful).

I don't use Chrome.

Re:Collapsible comments for Hacker News by beyti on Tuesday September 04, 2012 @09:40AM (#4474469)
When I try to install the chrome extension for newly added comments, chrome says "it's only available through web store"?
Re:Collapsible comments for Hacker News by shawndumas on Tuesday September 04, 2012 @09:59AM (#4474521)
In Chrome, you can follow these steps to add the extension:

1. Download the extension file from the website and save it to your computer.

2. Click the wrench icon on the browser toolbar. Select Tools > Extensions.

3. Locate the extension file on your computer and drag the file onto the Extensions page.

4. Review the list of permissions in the dialog that appears. If you would like to proceed, click Install.

--http://support.google.com/chrome_webstore/bin/answer.py?hl=e...

Re:Collapsible comments for Hacker News by sanderversluys on Tuesday September 04, 2012 @09:49AM (#4474492)
But you can still drag and drop it on the Chrome extensions page or use the load button.
Re:Collapsible comments for Hacker News by wvl on Tuesday September 04, 2012 @11:58AM (#4475102)
Huh, I never even realized that Chrome had removed the ability to install extensions from third party websites. I'll get that up on the chrome web store when I get some time.
Re:Collapsible comments for Hacker News by wvl on Sunday September 09, 2012 @06:10PM (#4497198)
fwiw, I published the extension on the chrome web store:

https://chrome.google.com/webstore/detail/mnlaodleonmmfkdhfo...

Re:Collapsible comments for Hacker News by shawndumas on Tuesday September 04, 2012 @10:05AM (#4474548)
I really like this. I also have the Hacker News Enhancement Suite [1] and think it is almost as good as the Reddit one.

----

[1] https://chrome.google.com/webstore/detail/bappiabcodbpphnojd...

Re:Collapsible comments for Hacker News by idm on Tuesday September 04, 2012 @11:37AM (#4475008)
It makes me happy to see the concepts from RES ported to HN. Thanks for sharing the link; I think this will legitimately help me to speed through the front page more quickly in the mornings.
Re:Collapsible comments for Hacker News by xpose2000 on Tuesday September 04, 2012 @10:08AM (#4474566)
Appreciate the link. Just installed the extension and loving it. :) Collapsible comment threads and a whole lot more!
Re:Collapsible comments for Hacker News by prawks on Tuesday September 04, 2012 @10:40AM (#4474732)
This is fantastic! Thanks for the link.
Re:Collapsible comments for Hacker News by dharmarth on Tuesday September 04, 2012 @11:03PM (#4477758)
This is very useful. Thanks for sharing link
Re:Collapsible comments for Hacker News by rane on Tuesday September 04, 2012 @11:14AM (#4474880)
I'm not going to click a bookmarklet every time I read comments, definitely should be an extension or a user script.

Secondly the collapse button would be much better on the left side.

Re:Collapsible comments for Hacker News by pk on Tuesday September 04, 2012 @01:17PM (#4475504)
What do you think about http://news.ycommentator.com ? It does some HN-enhancement (shows top comments on the front page), but using a server to do all the processing instead of a client script.

I built it a few months ago. If there was any interest, I could expand it to include collapsible comments.

Re:Collapsible comments for Hacker News by adamzochowski on Tuesday September 04, 2012 @09:33AM (#4474446)
One suggestion, can you move the collapsible-minus to be left of username? Like on reddit?
Re:Collapsible comments for Hacker News by niyazpk on Tuesday September 04, 2012 @10:46AM (#4474760)
It is actually on the correct side. The screenshot a bit old. My bad.
Re:Collapsible comments for Hacker News by shortlived on Tuesday September 04, 2012 @08:39AM (#4474259)
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.
Re:Collapsible comments for Hacker News by eliaskg on Tuesday September 04, 2012 @08:42AM (#4474269)
Very useful! Instead of "optically scanning" all the first level comments I can collapse each comment after reading.
Re:Collapsible comments for Hacker News by przemoc on Tuesday September 04, 2012 @08:54AM (#4474300)
If you're Chrome user by any chance, you can try also my simple extension:

NavigComments @ Hacker News

https://chrome.google.com/webstore/detail/aelihpmbbbpmljkdco...

Supports hiding comments marked as read.

Works only with http://, I have to add https:// one day, but I always forget it... Also some other things should be improved, then I could update NavigComments @ LWN too.

Re:Collapsible comments for Hacker News by arantius on Thursday September 06, 2012 @03:23PM (#4485726)
Or always available as a user script:

https://arantius.com/misc/greasemonkey/hacker-news-comment-c...

Also collapses by default threads below depth two.

Re:Collapsible comments for Hacker News by eli on Tuesday September 04, 2012 @08:50AM (#4474288)
I have been using this to provide collapsing comments for some time: https://github.com/andrewheins/HN-Comment-Hider
Re:Collapsible comments for Hacker News by tripzilch on Thursday September 06, 2012 @10:35AM (#4484280)
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! :)
Re:Collapsible comments for Hacker News by kaixi on Tuesday September 04, 2012 @03:34PM (#4476150)
My userscript for Greasemonkey users: http://userscripts.org/scripts/show/138037
Re:Collapsible comments for Hacker News by shanelja on Tuesday September 04, 2012 @08:27AM (#4474228)
Fabulous! just started using it now, great job.

I love approaches like this, as opposed to just moaning feature X doesn't exist, implement it!

Re:Collapsible comments for Hacker News by ssn on Tuesday September 04, 2012 @12:35PM (#4475276)
Why isn't this implemented on HN natively?
Re:Collapsible comments for Hacker News by akirk on Tuesday September 04, 2012 @12:47PM (#4475339)
Asked pg to integrate my script but he wouldn't do so, even though he would have just had to copy the Javascript over (I had adapted the code for him).

So I guess, pg just doesn't think it's useful.

Re:Collapsible comments for Hacker News by raimondious on Tuesday September 04, 2012 @01:09PM (#4475459)
I have always assumed this feature was consciously omitted from HN in order to encourage more thoughtful conversation. Since I can't skip conversations, I read them and sometimes hold my tongue rather than commenting with the first thing that comes to mind.
Re:Collapsible comments for Hacker News by tripzilch on Thursday September 06, 2012 @10:34AM (#4484277)
Sounds like a good idea at first, but I feel that not having collapsible comments is detrimental to the discussion, and in particular it counteracts the advantages of tree threaded discussion versus linear discussion (as seen on many messageboards and blog comments).

Why? Because the advantage of tree-based threads is that you can split off and have a relatively off-topic conversation without jacking the whole discussion. However, if such a discussion develops just below the top-voted comment, and it gets larger, it will dominate the whole discussion because people (naturally) won't always read the full page of the discussion.

This gets doubly problematic because of the tendency is that a "large, slightly off-topic discussion near the top comment" is very often about the same chewed-to-death topics that are just two camps firing off their default arguments at eachother (Apple vs general purpose computing, anything libertarian, intellectual property vs piracy, etc etc, you have seen them all). Which may be worthwhile discussions to have, nor would I want to prevent anyone from having them, but very often I want to read the discussion about the particular topic in this particular article, or at least how it differs from other articles triggering such responses, and not the general arguments by the two camps, which I already know (and most people have made up their minds about, anyway).

Re:Collapsible comments for Hacker News by felipebueno on Tuesday September 04, 2012 @08:33AM (#4474241)
This is pretty useful, man! Just started using it too.

I'm thinking of making a Chrome Extensions from this bookmarklet.

Re:Collapsible comments for Hacker News by beyti on Tuesday September 04, 2012 @09:37AM (#4474456)
Thanks a lot, it's amazing. Should be a chrome extension fast, btw.
Re:Collapsible comments for Hacker News by snowman41 on Tuesday September 04, 2012 @08:40AM (#4474262)
This is great! Thank you!
Re:Collapsible comments for Hacker News by Kilimanjaro on Tuesday September 04, 2012 @10:04AM (#4474546)
Implement here ASAP!!!
Re:Collapsible comments for Hacker News by Havoc on Tuesday September 04, 2012 @08:36AM (#4474249)
Thanks.