Created
August 14, 2021 00:03
-
-
Save nabn/07a2f1d68674b347738f95f01a0b1ac4 to your computer and use it in GitHub Desktop.
Userscript to improve hacker news typography
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 Legible Hacker News | |
// @namespace ycombinator.com | |
// @description Improve Typography | |
// @include https://news.ycombinator.com/* | |
// @version 0.1 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
GM_addStyle(` | |
center { | |
float: left; | |
} | |
#hnmain { | |
min-width: unset; | |
max-width: 72ch; | |
background-color: rgba(250,249,247); | |
} | |
body { | |
background-color: #faf9f752; | |
} | |
td[bgcolor="#ff6600"] { | |
background-color: rgb(250,249,247); | |
} | |
.comment,.comhead,title a,.title { | |
font-family: IBM Plex Sans, Helvetica, sans-serif; | |
line-height: 1.5; | |
font-size: 14px; | |
} | |
.comment { | |
margin-right: 1rem; | |
} | |
.comment-tree { | |
} | |
.c00, .c00 a:link, a:link { | |
color: #252525; | |
} | |
.pagetop { | |
font-size: 10px; | |
} | |
textarea { | |
height: 1em; | |
border: 1px solid lightgrey; | |
border-radius: 3px; | |
} | |
`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment