Created
May 16, 2020 15:24
-
-
Save lucis/592a9522663a14120c7c7a39c972685e to your computer and use it in GitHub Desktop.
My Hacker News Dark Theme
This file contains hidden or 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
var link = document.createElement( "style" ); | |
link.type = "text/css"; | |
link.innerText = ` | |
html { | |
background-color: #454545 !important; | |
} | |
.storylink, .comment p, .comment span { | |
color: #eeeeee !important; | |
} | |
#pagespace { | |
display: block | |
} | |
#hnmain > tbody > tr:nth-child(3) > td, #pagespace { | |
background-color: #292929 !important; | |
} | |
#hnmain > tbody > tr:nth-child(1) > td { | |
background-color: #ff5517 !important | |
} | |
#hnmain > tbody > tr:nth-child(1), #hnmain > tbody, #hnmain { | |
background-color: transparent !important | |
} | |
.sitebit, .reply * { | |
color: #828282 !important; | |
} | |
#hnmain > tbody > tr > td > table > tbody > tr > td.subtext > a:nth-child(7) { | |
color: #E6C149 !important; | |
font-weight: bold; | |
} | |
` | |
document.getElementsByTagName( "head" )[0].appendChild( link ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Came across this on a HN thread about HN Dark mode. How do I use this?