Settings

Theme

Show HN: Collapse Comments on Hacker News

chrome.google.com

93 points by Igglyboo · 79 comments

Reader

23 threads
waleedka

This should be a standard feature in HN.

The other pain point is the up/down arrows being so close to each other on mobile that I have to zoom in, vote, then zoom out.

  • irq

    Completely agree that this should be a standard feature, and I think it's a big mistake that it wasn't introduced back when comment score visibility was removed.

    Back then, I used a comment's score as a way of finding more interesting comments. I totally understand why this feature was removed, however, without it, I'm left to look for comments that get a lot of replies to weed out the boring comments from the interesting ones, and keeping track of indentation while scrolling through hundreds of comments is tedious. I'm sitting in front of a computer that should be able to do this for me.

    • orik

      Perhaps this is a feature that would make the comments on hacker news worse?

      I'd be interested if they tested it, but I can't say for certain if I think it should become a feature or not.

      • krapp

        I don't see how it could possibly make the comments worse, if for no other reason than people are already using plugins to accomplish this. Either the damage has already been done, or it's not relevant.

        • Normal_gaussian

          I would imagine most users do not use plugins. Though I would be interested if it's possible to get statistics for this.

  • tzs

    I'm convinced that the designers of HN deliberately designed the interface to be slightly annoying, although I do not have any theories as to why. That is the only explanation I have come up with for several things that are annoying and would be trivial for them to fix.

    • The placement of the up/down arrows, as you noted.

    • On text submissions, such as "Ask HN" submissions, the submitter's text is greyed out similar to the way down voted comments are greyed out.

    • If you want to see dead comments, which are by default completely hidden, you can turn on the "showdead" option. That makes them visible...but they are greyed out so that it is hard to read them.

    • Houshalter

      I think they grey out of dead comments is a feature. It lets you read them if you want, but is a huge visual indicator that it isn't worth reading.

      • tzs

        They could accomplish this by using some color that is readable, such as red or purple. That would give a huge visual indicator so that you'd know you are dealing with a dead comment.

        Remember, people who do not want to read any dead comments will have left "showdead" in its default state of "off", and so won't see these at all. The only people who see dead comments are those who explicitly said they want to see them.

        • lmitchell

          Is that definitely the way it works? I don't think I've ever configured anything on HN and I see dead comments. I also think it's really nice - as grandparent said, it's a very clear indicator that I'm dealing with something I probably want to ignore.

          • tzs

            What does "showdead" say in your settings (click on your username in the orange bar to get to settings)? It should be "no" if you have not changed it.

            You can test it on the comments on this submission: https://news.ycombinator.com/item?id=11213213

            There are several dead comments near the bottom that are visible if showdead is "yes", and invisible if it is "no".

            • lmitchell

              Ohh, are 'dead' comments different from ones that have just been downvoted into mostly-grayness? In that case I don't actually see them, I just see undead comments :) thanks for clarifying

    • dang

      If you click on a comment's timestamp to go to its page, it shouldn't be greyed out there.

      • tptacek

        I think a better way to handle this would be to remove killed comments from the normal thread view altogether, but make them available to anyone ("showdead" or not) by clicking on the comment's timestamp.

        • dang

          How would anyone see the timestamp to click on it?

          • tptacek

            Display the comment, but replace the text of the comment with [this comment has been flagged].

            I almost wrote [this comment has been flagged, click the timestamp to read it], but why encourage people?

            • dang

              Oh I get it. That's actually similar to a change we've been meaning to make, but only for [flagged] comments as opposed to all [dead] ones. I'll think about the latter.

              • waterlesscloud

                Personally I don't like this idea. If I've chosen to turn on "showdead", why hide dead comments from me? I've explicitly indicated I'd like to see them.

                • tptacek

                  Because if we do it this way, we won't need "showdead" any more: "dead" posts will work naturally no matter what your settings are. There's no reason to have an advanced setting to allow you to click through to a dead comment; everyone should just be able to do it.

                  It also neatly dodges the problem of deemphasizing toxic posts on threads; the content simply isn't displayed in the thread, but is available in a more readable form just a click away.

                  It will also do nice things for the formatting of the threads themselves (flagged comments on nested threads won't take up much vertical space).

                  • waterlesscloud

                    But I do not want it hidden, I do not want to have to click through to it. I want to see it, as my selected preference indicates.

                    • tptacek

                      Then they can keep the "showdead" option, make it behave like it does now, and the whole site will still get more intuitive for people who don't know about "showdead", to the point where 'dang will never have to explain it again.

  • taylorwc

    Yes! And on mobile, I manage to flag things on accident at least a few times per week.

  • pfarnsworth

    It makes me wonder why they won't bother spending the 15 minutes to implement the feature which everyone wants.

    • Analemma_

      Didn't pg actually say that he deliberately wants the UX of Hacker News to be kind of crappy to keep out the riffraff? There's certainly a discussion to be had about whether that's good thinking, but for better or worse, I think it's intentional.

      • Houshalter

        The downvote button doesn't even appear until you have 500 karma. It's an anti feature that only affects experienced users.

    • Razengan

      Collapsing comment trees and notification of replies, please.

  • mizzao

    Is monkey-patching other people's web apps really the right way to get this done? It's very brittle and it seems that the policy-driven (i.e. convince HN to do it) method is better than the vigilante programmer method.

    • prawn

      People have been asking for it for years with no action or even response (that I've seen). I've used the same HN collapse extension in Chrome for a while now with no problems - dislike browsing HN on my phone without it.

      It's obvious to me which approach has been better.

    • patrickmclaren

      These two approaches don't need to be exclusive. Community workarounds such as this can also function as building blocks for discussion.

    • Kenji

      Yes. I made my own collapsible comments Greasemonkey script years ago and only had to update once, about a year ago. I am really happy with it because it has precisely the features I want and need, and every time I log into HN from another machine I miss it sorely. Maybe I'll submit it to HN but my website needs one quick fix first.

    • jkeat

      Why not both? This is an immediate solution.

    • mchahn

      > It's very brittle

      So? Things break and then I uninstall them.

  • gherkin0

    > The other pain point is the up/down arrows being so close to each other on mobile that I have to zoom in, vote, then zoom out.

    Made even worse because there's no way to fix it if you accidentally vote incorrectly.

  • arasmussen

    I agree that this is something HN should build rather than be supported via a Chrome extension.

    I work on a semi-relevant project called Product Pains where people can post and vote on product feedback publicly about any app or website. After seeing this thread, I posted this feedback about HN: https://productpains.com/post/hacker-news/make-comments-coll...

    The idea is that a lot of votes on a piece of feedback creates a social responsibility for the team to respond and ideally implement the feature. We're still in early stages but consider voting on this and/or posting other feedback for HN. They could definitely use it. :)

  • tomphoolery

    It is if you use HN Special ;) http://gabrielecirulli.github.io/hn-special/

  • Houshalter

    The worst thing is when people quote text by putting it in a code block. Why? Why would you do such a thing? It makes it impossible to read on mobile, and even in a browser it prevents text wrap.

  • sanjeetsuhag

    Its such a simple thing to ask for too! Hacker News interface is complete trash for such a popular website.

    • noarchy

      A counter might be that popularity can overcome a dated interface. Look at the Drudge Report website, after all - wildly popular, and it looks like something out of the 1990s.

      I, too, would like to see collapsible comments on HN, but I also want to keep the interface simple. It never needs to be flashy, just functional.

      • krapp

        In what way would collapsible comments be flashy rather than functional, though?

  • Kinnard

    Or risk accidentally downvoting!!!

shadeless

I'm pretty happy with "Hacker News Enhancement Suite", it supports this and few other nice things. [0]

[0] https://chrome.google.com/webstore/detail/hacker-news-enhanc...

  • irq

    I just tried this and I am not happy with it. I dislike the extreme changes it makes to HN's layout and colors. Way too heavy handed for me. Surprising, given the name, which is obviously a play on Reddit Enhancement Suite, which is a great addon that doesn't make reddit look totally different.

    • kjaer

      The extension badly needs settings, so that you can control what features you want and don't want. That being said, the author of the extension isn't really active on GitHub. He certainly hasn't replied to my pull request that adds the ability to tag users yet.

      I might fork it one day, call it HNES+ or something. Then maybe development can gain a bit of traction again.

  • flashman

    I use "HN Special"[1] with the visual theme turned off (it irritates me). It also offers infinite scrolling, although it makes accessing the search box a little tedious.

    [1] https://chrome.google.com/webstore/detail/hn-special-an-addi...

    • absorber

      Just tried it, this IMO is definitely an improvement over the Hacker News Enhancement Suite, especially when using the default HN style.

      However, I frequently use HN without scripts and cookies, and I find it somewhat disappointing that it uses cookies to store its settings instead of local storage.

      I'll open an issue on the repo when I find the time though.

  • livus

    Why does it need to read my browsing history?

amadeusw

Similar add-on for Firefox: https://addons.mozilla.org/en-US/firefox/addon/hn-utility-su...

lobster_johnson

I use this one (supports Chrome and Safari):

http://hckrnews.com/about.html#extensions

It has collapsing, and it also highlights unread comments.

kristianp

This is nice. One feature I'd like in HN is a max comment depth that is collapsed by default. Often a lot of scrolling is needed to get past a controversial thread that has a lot of replies, but doesn't discuss something relevant or informative. People end up replying to the top thread even for a different topic, because they feel that is the only way to get seen.

  • nickpsecurity

    Great observation. I het annoyed by the scrolling and the fact that I cant tell who they're replying to without hitting parent.

IgglybooOP

Re-Submitted because I uploaded it to the chrome web store, had some reports of people not being able to enable it or install it because of some recent security changes.

Just a tiny little extension that lets you collapse comments on HN. Any feedback would be greatly appreciated.

Here's the github link if you're interested https://github.com/Igglyboo/hn_collapse

  • smhinsey

    This is pretty cool! I switched from a similar extension purely because I prefer the location on the left of the comment rather than the right.

    I've tried a lot of these and one thing I haven't seen is a similar feature to RES that remembers collapsed threads. Any ideas if this is something that HN's design somehow precludes or is it just a matter of someone sitting down and writing the code?

  • tswartz

    Cool! I've always found it hard to read comments in the big discussions. It would be helpful if you had more details on what comments it collapses in the Chrome store description. In the screenshot it didn't look like comments were collapsed. Can I adjust which comments are collapsed, is it just deeply nested comments?

  • quanticle

    Awesome work. This is really helpful on stories that have more than a hundred comments.

taspeotis

I like HackerNew

https://chrome.google.com/webstore/detail/hackernew/lgoghlnd...

adamweld

http://hn.premii.com/

charonn0

I use this[1] bookmarklet for the same effect.

[1]: https://gist.github.com/charonn0/beae6d3adf1b586409fa

pllbnk

I had submitted a similar script, among others a few days ago. It is a user script and can be used on Firefox w/ Greasemonkey and Chrome w/ Tampermonkey: https://raw.githubusercontent.com/PauliusLabanauskis/UserScr...

wluu

Looks quite similar in behaviour to one I've been using previously: https://chrome.google.com/webstore/detail/hacker-news-collap...

charlieegan3

I've used https://chrome.google.com/webstore/detail/hacker-news-collap... for a while, does this have any extra features?

mastax

I had been using hn.premii.com in order to get a better browsing experience, but it was annoying that I couldn't comment on there. I'm not sure why I hadn't thought to look for chrome extensions to enhance HN, but I'm glad that I found them!

cheshire137

I use this one: https://chrome.google.com/webstore/detail/hacker-news-collap...

elliotec

Thank you! This is great and doesn't do anything I don't care about!

CoachRufus87

Is there a way to sandbox a chrome extension to a specific domain (or know that an extension is only allowed to work on a specific domain)?

  • detaro

    Chrome tells you the extension permissions, including for which URLs they apply, before you confirm installing it.

toyg

Still missing: an extension that will open links in a frame, keeping comments below (or rather to the side, in the age of widescreen).

Rauchg

Love it. Suggestion: persist the collapse state to `localStorage`. This is enabled on Reddit through a Chrome Extension as well.

pc86

The voting buttons should probably disappear for minimized comments.

IkmoIkmo

Works great, thanks!

mhays

Thank you!

joesmo

Thanks for this! I was using an old extension for this that broke with the HN redesign a few months back.

nononoxd

No, wait! I thought only grandma uses chrome and that the HN users care about freedom and use firefox/dillo/icecat/whatever. My wrong.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection