nowfound

Dev tools · September 5, 2022

HD

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 →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • 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

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

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

  • Polywork1,216

    Discover opportunities to collaborate

    Life & fun · 2022

  • xTiles1,035

    Organize your ideas & projects visually

    Work · 2022 · xtiles.app

  • Arcade 2.01,026

    The easiest way to showcase your product

    Life & fun · 2022 · arcade.software

  • Maven977

    100+ live courses taught by experts, education reimagined

    Life & fun · 2022 · maven.com