Ask HN: Dark mode for HN please? (2026)

15 points | by Stitch4223 10 hours ago ago

8 comments

  • Bender 10 hours ago ago

    I think the easiest option for now will have to be this [1] assuming one already has uBlock Origin. Adjust as desired.

    [1] - https://news.ycombinator.com/item?id=49686631

    • dlcarrier 3 hours ago ago

      Here's a high-contrast one, for those who find higher contrast easier to read, or otherwise prefer it.

          # HN dark Mode:
          news.ycombinator.com##body:style(background: black)
          news.ycombinator.com##td:style(color: #ffffff !important)
          news.ycombinator.com##table:style(background-color: #000000)
          news.ycombinator.com##div.toptext:style(color: #ffffff)
          news.ycombinator.com##div.c00:style(color: #ffffff !important)
          news.ycombinator.com##a:style(color: #ffa000 !important)
          news.ycombinator.com##span#karma:style(color: #faa000 !important)
          news.ycombinator.com##span.pagetop:style(color: #ffffff !important)
          news.ycombinator.com##textarea:style(color: #ffffff !important; background: inherit; )
          news.ycombinator.com###hnmain:style(background: #000000 !important)
  • leoprctmp 8 hours ago ago

    I wrote a simple Tampermonkey script:

    (function() { 'use strict';

        // Background Color
        let el = document.querySelector("#hnmain")
        el.style.backgroundColor = "#1A1B16"
        el.style.color = "lightgrey"
        document.querySelector("body").style.backgroundColor = "#1A1B16"
    
        // Font Color
        document.querySelectorAll("a").forEach(one => { one.style.color = "lightgrey" })
        document.querySelectorAll(".c00").forEach(one => { one.style.color = "lightgrey" })
    })();
  • OsrsNeedsf2P 10 hours ago ago

    Darkreader

    • Stitch4223 2 hours ago ago

      Thanks for the suggestion.

      Just bought and installed it as an iOS extension :) All themes and all custom themes remove the upvote button. Does it do the same for you?

  • abstractspoon 5 hours ago ago

    Try Harmonic

  • novia 9 hours ago ago

    you can modify chrome flags to force sites into dark mode

    • john01dav 9 hours ago ago

      I have found that Dark Reader works much better than this.

      (I use Firefox generally, but my employer forces Chrome for many work tasks, and is also very concerned about data security from 3rd party extensions, so Dark Reader is not readily accessible. I use Dark Reader with Firefox at home, and find that it much more frequently has a reasonable result. Another issue with teh Chrome flag is that it is inconvenient to toggle when encountering such a broken website, or when you want light mode.)