News for hackers. Stuff that matters.
Re:Two lines of CSS that will improve HN on mobile (IMO) by gHA5 on Thursday December 09, 2021 @07:48AM (#29496756)
What I really would like to have would be to collapse comment threads via a column that runs the length of the comment thread and is indented like its respective comment.

This way I don't have to scroll to find the comment to collapse its thread, and clicking the column is easier.

This is used in some subreddits in the old Reddit style, e.g. /r/de as can be seen here: https://old.reddit.com/r/de/comments/rcc9us/experten_finden_...

Re:Two lines of CSS that will improve HN on mobile (IMO) by evanreichard on Thursday December 09, 2021 @10:15AM (#29498231)
I created a quick UserScript that does just this. Hacked together but seems to work well. You can find it here [0][1]

[0] https://gist.github.com/evanreichard/96d89512cbfe23e5d7a8147...

[1] https://i.imgur.com/qGUltI8.png

Re:Two lines of CSS that will improve HN on mobile (IMO) by Anthony-G on Thursday December 09, 2021 @02:59PM (#29502164)
I was going to ask how to install it but figured I should be able to figure it by myself. After a few web searches and reading this Hacker News discussion¹, I installed GreaseMonkey and it was super-easy from there.

Many thanks! It works like a charm.

¹ https://news.ycombinator.com/item?id=22896078

Re:Two lines of CSS that will improve HN on mobile (IMO) by trungdq88 on Thursday December 09, 2021 @11:36AM (#29499505)
Very helpful, thanks for sharing! I'm installing it now.
Re:Two lines of CSS that will improve HN on mobile (IMO) by tzs on Thursday December 09, 2021 @08:59AM (#29497357)
This is one of the few things where I think the new Reddit is actually a little better. Same basic idea as at your link, but make it so that those guidelines that are running down to the left of the subtree are the thing you click to collapse, instead of having a separate invisible (until you mouse over) collapse column next to the guideline.
Re:Two lines of CSS that will improve HN on mobile (IMO) by leephillips on Thursday December 09, 2021 @09:06AM (#29497454)
The Refined Hacker News extension for Chrome has a “collapse root” button on each comment that I think does what you want.
Re:Two lines of CSS that will improve HN on mobile (IMO) by stoicjumbotron on Thursday December 09, 2021 @10:03AM (#29498076)
+1 for the extension. Been using it since forever on Firefox and Brave.

Link: https://github.com/plibither8/refined-hacker-news

Re:Two lines of CSS that will improve HN on mobile (IMO) by loufe on Thursday December 09, 2021 @09:41AM (#29497806)
Note that the extension is also for Firefox (and, I'll attest as well, is great).
Re:Two lines of CSS that will improve HN on mobile (IMO) by DavidCole1 on Thursday December 09, 2021 @12:26PM (#29500254)
Great extension. Thank you for recommending.
Re:Two lines of CSS that will improve HN on mobile (IMO) by gibspaulding on Thursday December 09, 2021 @08:35AM (#29497141)
Hackerdaily [1] has a nice interface for collapsing comments too, though it suffers from the same issue on mobile that the main HN site does. The collapse button just follows you down the page until you are through all of a comment's children, so you can always collapse without scrolling back up.

https://hackerdaily.io/29482351/comments

Re:Two lines of CSS that will improve HN on mobile (IMO) by reaperducer on Thursday December 09, 2021 @11:08AM (#29499049)
There are lots of interesting HN-specific browser extensions, if you know where to look.

One I came across performs automatic voting. On pageload, it scans for comments starting with "So..." or ending with " lol" and downvotes them. I'm not sure who this is for. "Communication peeves" comes to mind, but doesn't quite fit. I'm don't know what the word is for this.

Re:Two lines of CSS that will improve HN on mobile (IMO) by kriops on Thursday December 09, 2021 @09:33AM (#29497726)
My 5 cents: This makes it way too easy to accidentally collapse threads as the clickable area is hard to tell apart from whitespace. (Speaking from regular and annoying experience with on old.reddit.com.) I, for one, much prefer the HN style buttons.
Re:Two lines of CSS that will improve HN on mobile (IMO) by phil294 on Friday December 10, 2021 @03:44AM (#29507797)
I know I'm late to the party but this could do what you want: https://greasyfork.org/en/scripts/427429-hacker-news-context... (disclaimer, I made it)
Re:Two lines of CSS that will improve HN on mobile (IMO) by adrianojlt on Thursday December 09, 2021 @09:44AM (#29497839)
I did this to toggle all the comments via bookmarklet: https://greptips.hashnode.dev/hacker-news-toggle-comments
Re:Two lines of CSS that will improve HN on mobile (IMO) by relaxing on Friday December 10, 2021 @06:53AM (#29508836)
A little bit of UX like this would go a long way towards fixing the problem where the first root comment gets all the activity, because people get sucked in to one of many subthreads as they scroll past.
Re:Two lines of CSS that will improve HN on mobile (IMO) by Zababa on Thursday December 09, 2021 @12:22PM (#29500201)
It would be also very useful to know how "deep" you are into a comment thread.
Re:Two lines of CSS that will improve HN on mobile (IMO) by beebeepka on Thursday December 09, 2021 @08:00AM (#29496850)
Slashdot has that. Ability to collapse would be enough for me