Last active
January 5, 2021 21:36
-
-
Save tpkahlon/dd8b64cc7fe1d38477cf4bd0a16fd1b8 to your computer and use it in GitHub Desktop.
Dark Mode (Hacker News)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy code below and run in browser console | |
"use strict";document.querySelectorAll("td, #hnmain").forEach(e=>e.setAttribute("bgcolor","")),document.querySelectorAll("a").forEach(e=>e.style.cssText="color:inherit"),document.querySelectorAll(".storylink").forEach(e=>e.style.cssText="color:white"),document.querySelectorAll(".pagetop *, span").forEach(e=>e.style.cssText="color:grey"),document.querySelector("body").style.cssText="background-color:#222;color:#fff"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment