Last active
January 10, 2024 13:14
-
-
Save scsmash3r/7bcba2423018c26180183cb2c98a19a1 to your computer and use it in GitHub Desktop.
Dark mode everywhere for Tampermonkey or Greasemonkey
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
// ==UserScript== | |
// @name Dark HN | |
// @match https://news.ycombinator.com/* | |
// @version 0.1 | |
// @description Simple dark mode | |
// @author You | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
window.addEventListener('load', function () { | |
document.body.style.background = '#111'; | |
document.body.style.filter = 'invert(1) hue-rotate(180deg)'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment