Comment by rcarmo

5 months ago

Hmmm. Does that mean we'll get dark mode now?

uBlock origin filter:

    ! Hacker News dark mode
    news.ycombinator.com##html:style(filter:invert(90%) hue-rotate(180deg))
    news.ycombinator.com##body:style(background: white)

https://news.ycombinator.com/item?id=23199062

  • That thread is 5 years old, and nothing really came out of it.

    The genius solution in there is probably this one:

         @media (prefers-color-scheme:dark){body{filter:invert(1) hue-rotate(180deg)}}
    

    ...which you can try by doing this in the browser console:

        const styleElement = document.createElement('style');
        styleElement.type = 'text/css';
        styleElement.textContent = "@media (prefers-color-scheme: dark) { html { filter: invert(1) hue-rotate(180deg); } }";
        document.head.appendChild(styleElement);
    
    

    But I get that there are a lot of opinions. Just try one, put up a vote over a week, do it over 4-6 weeks, settle on the one that has the best feedback...

Considering Hacker News thinks font-size:9pt is acceptable for body text in 2025, don't hold your breath.

  • I like it, in fact my standard terminal font size is even smaller. I hate all the modern websites wasting tons of whitespace, so that you need to hit C-- ~3 times to make it usable.

  • whats wrong with that?

    • It's too damn small. Firefox automatically scales it up to 12px (as does Chrome I think), and even then I zoom in to 130% to get the font to 15.6px.

      On the home page the text that tells you who the poster is, how many upvotes and comments, etc, is gray text on a gray background, at 7pt font. Again, Firefox and Chrome scale this up to 9.33pt, which again, is too small for me to read comfortably on a 24 inch desktop monitor without zoom.

      (I accept that 120% would be fine; that brings up the main font size to 14.4pt. Wikipedia seems to use 14pt and that's totally fine for me. But still, neither me nor the browser should have to scale up the website.)

      Even at 130% zoom, on the home page I can see 20 posts at once. I understand complaints that reddit went too far in the other direction, but that doesn't mean they should throw accessibility out the window for this site.

      7 replies →

Can't you use tampermonkey or a similar tool that lets you apply your own stylesheet?

  • The OP isn't really asking for a "dark mode" like a literal reading of his comment might suggest. He's asking for an officially supported dark mode that evolves with the site and doesn't break random functionality one day. It's easy to use Stylist or TamperMonkey to make a dark mode that works at one instant of time. It's much harder to maintain one indefinitely in the face of constant changes made by developers not concerned with breaking your work, which they probably don't even know about.

    • I think there was a vision early in the evolution of the web that user-supplied stylesheets would be a lot more commonly used than they turned out to be.

      Things like colors, contrast levels, font sizes, are often matters of personal preference, and the browser (in theory) is the common place to manage those. Each site should not have to reinvent this feature.

      14 replies →