Skip to content

Instantly share code, notes, and snippets.

@lucis
Created May 16, 2020 15:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucis/592a9522663a14120c7c7a39c972685e to your computer and use it in GitHub Desktop.
Save lucis/592a9522663a14120c7c7a39c972685e to your computer and use it in GitHub Desktop.
My Hacker News Dark Theme
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 );
@aklsh
Copy link

aklsh commented Sep 9, 2021

Came across this on a HN thread about HN Dark mode. How do I use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment