Skip to content

Instantly share code, notes, and snippets.

@neo-sam
Last active April 20, 2021 09:18
Show Gist options
  • Save neo-sam/4488432ae067f6b04fe9cf8e5171606f to your computer and use it in GitHub Desktop.
Save neo-sam/4488432ae067f6b04fe9cf8e5171606f to your computer and use it in GitHub Desktop.
Read Golang Doc with Better Style
// ==UserScript==
// @name Read Golang Doc Better
// @name:zh 更美的 Golang 文档
// @namespace https://littleboyharry.me
// @version 1.0.1
// @description go to read with better override style!
// @author LittleboyHarry
// @match https://golang.org/*
// @match https://blog.golang.org/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
GM_addStyle(`
html {
font-size: 1em;
}
body {
background: #FDF6E3;
}
main {
align-text: center;
}
main#page.Site-content>.container {
display: inline-block;
max-width: 800px;
width: 90%;
}
.container p{
line-height: 1.5;
}
`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment