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
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
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, September 2022
the whole month →- IM
Life & fun · 2022 · dogbunnypuzzle.com
- IM
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



