Show HN: Show descendant count on Hacker News 'more' links
Hacker News recently introduced Reddit-style comment hiding when there are too many comments in a subthread.<p>This Tampermonkey script modifies your HN so that you see how many comments are waiting for you at each &#x27;more&#x27; link.<p>I find it much easier to browse HN now. It&#x27;s immediately clear whether I&#x27;m missing a large subtree.<p>It&#x27;s nice for distinguishing &#x27;more&#x27; vs &#x27;reply&#x27;, too. (I originally didn&#x27;t notice it was a new feature, and rushed off to report a new &quot;hidden comment bug,&quot; ha.)<p>If you don&#x27;t want to install a Tampermonkey script, or you want to preview how it looks, you can open your browser console and run the JS directly.<p><pre><code>  [...byTag(document.body, &#x27;a&#x27;)].filter(x =&gt; x.innerText == &#x27;more&#x27;).map(x =&gt; { x.innerText = `${byClass($(x.href.split(&#x27;item?id=&#x27;)[1]), &#x27;togg&#x27;)[0].attributes[&#x27;n&#x27;].value - 1} more`;
</code></pre>
(Be sure to run it on a story with hundreds of comments, or else you might not see any &#x27;more&#x27; links at all. E.g. without this script, you might miss the 9 comments near the top of the Bel Show HN, since it&#x27;s indistinguishable from the subtree with only 3 comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21231208#21232605" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21231208#21232605</a>)<p>Enjoy.