Skip to content

Instantly share code, notes, and snippets.

@graue
Created May 27, 2013 00:52
Show Gist options
  • Save graue/5654626 to your computer and use it in GitHub Desktop.
Save graue/5654626 to your computer and use it in GitHub Desktop.
My userContent.css for Firefox (makes Hacker News comments and Humbug messages more readable)
@-moz-document url-prefix(https://news.ycombinator.com) {
.comment {
font-family: Alegreya, serif !important;
font-size: 15pt !important;
}
.comment code {
font-family: Inconsolata-g, fixed !important;
font-size: 10pt !important;
}
}
@-moz-document url-prefix(https://humbughq.com) {
body {
background-color: #ebebeb !important;
}
.sidebar-nav {
background-color: inherit !important;
}
.message_content {
line-height: 18px !important;
margin-left: 42px !important;
margin-right: -42px !important;
}
.messagebox {
padding: 8px 60px 8px 5px !important;
border-bottom: 1px solid #ebebeb !important;
}
.inline_profile_picture {
width: 36px !important;
height: 36px !important;
background-size: 36px !important;
border-radius: 4px !important;
}
.bookend {
padding-top: 18px !important;
}
}
@graue
Copy link
Author

graue commented May 27, 2013

To use this, go into ~/.mozilla/firefox/abc3defg.default, make a 'chrome' subdirectory and put this there.

Replace 'abc3defg' with whatever your profile is called — it will be a sequence of meaningless letters and numbers like that.

(Edit: the directory to look in is different on Mac and Windows. See this article. Note that the article has an error: the file is called userContent.css, not userChrome.css.)

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