Skip to content

Instantly share code, notes, and snippets.

@nabn
Created August 14, 2021 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nabn/07a2f1d68674b347738f95f01a0b1ac4 to your computer and use it in GitHub Desktop.
Save nabn/07a2f1d68674b347738f95f01a0b1ac4 to your computer and use it in GitHub Desktop.
Userscript to improve hacker news typography
// ==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