Skip to content

Instantly share code, notes, and snippets.

@floriangosse
Last active March 13, 2026 20:28
Show Gist options
  • Select an option

  • Save floriangosse/52fd26e8f9b87d5c5f90b58d91fef1a2 to your computer and use it in GitHub Desktop.

Select an option

Save floriangosse/52fd26e8f9b87d5c5f90b58d91fef1a2 to your computer and use it in GitHub Desktop.
Make Hacker News a bit more beautiful
/* ==UserStyle==
@name Hacker News - Enhancements
@namespace github.com/openstyles/stylus
@version 0.2.0
@author Florian Goße
@updateURL https://gist.githubusercontent.com/floriangosse/52fd26e8f9b87d5c5f90b58d91fef1a2/raw/00_hackernews-enhancements.user.css
==/UserStyle== */
@-moz-document domain("news.ycombinator.com") {
body {
background-color: #fafafa;
}
#hnmain {
max-width: 880px;
box-shadow: 0px 0px 4px 2px #dedede;
border-radius: 4px;
overflow: hidden;
}
tr:nth-child(1) > td > table {
padding: 8px !important;
}
tr:nth-child(3) > td > table {
width: 100%;
padding-left: 4px;
padding-right: 4px;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #060606;
}
#hnmain {
background-color: #0A0A0A;
box-shadow: 0px 0px 4px 2px #222222;
}
a:link {
color: #ffffff;
}
.title {
color: #737373;
}
.hnmore a:link, a:visited {
color: #7e7e7e;
}
.c00, .c00 a:link {
color: #ffffff;
}
}
}

Hacker News - Enhancements

Make Hacker News a bit more beautiful

Installation

You can install by clicking on the following link (if you have Stylus installed).

Install directly with Stylus

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