HN dark mode in 2 lines of code
Paste this in the developer tools console of your browser document.documentElement.style.filter = "invert()" document.documentElement.style.background = '#fff' Edit: you can also create a bookmark with the code below in the URL field javascript: (() => { document.documentElement.style.filter = "invert()";document.documentElement.style.background = '#fff' })(); Then just click on the bookmark for instant dark mode
HN dark mode in 2 lines of code launched on September 5, 2022 with 31 votes, #914 of 3,464 launches that month and more than 75% of that year's launches.
In plain words
HN dark mode in 2 lines of code is a browser tool that inverts the colors of Hacker News to create a dark theme. Users paste two lines of JavaScript into their browser's developer console, or create a bookmark for one-click activation. The solution uses CSS filter inversion and background color adjustment to darken the interface. It is designed for Hacker News readers who prefer dark mode without waiting for native implementation.
written from the facts on this page · September 2026
Does a similar job
all alternatives →
Dark Mode for HN2020 · github.com · ▲41Browser extension that toggles an opinionated dark theme for the popular website, Hacker News. - azerella/ext-hn-darkmode
- HNHacker News Dark Mode2020 · jgthms.com · ▲119
- DDDarkHN – Dark Mode Mirror for Hacker News2021 · darkhn.herokuapp.com · ▲110
- HSHN Special – A visual theme and Chrome extension for Hacker News2013 · gabrielecirulli.github.io · ▲87
HN-beautify – a stylesheet for the HN frontpage2014 · github.com · ▲91A chrome extension that applies a stylesheet to Hacker News' frontpage. - guicoelho/hn-beautify
HNCute, a pretty pink Hacker News theme2018 · chrome.google.com · ▲208
More dev tools this month
the category →
Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.
Dev tools · 1d ago · github.com


open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 29d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 27d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 24d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 22d ago · talanoa.email
Source: Show HN post ↗
Launched alongside, September 2022
the whole month →- IM
Life & fun · 2022 · dogbunnypuzzle.com

A couple of years ago, I had an interesting idea. What if there was a marketplace where all the underlying tech was open-source? The order management system, the storefront, customer support, etc. The marketplace would simply connect to the seller’s infra instead of locking them in. If, for some reason, the seller is removed from the marketplace, their software stays with them and they can continue accepting orders directly. This model can be used to disrupt any marketplace from AirBNB to UberEats: building tech for home renters and restaurants and later, leveraging that to build a competing…
Dev tools · 2022 · openship.org



