Last active
April 20, 2021 09:18
-
-
Save neo-sam/4488432ae067f6b04fe9cf8e5171606f to your computer and use it in GitHub Desktop.
Read Golang Doc with Better Style
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 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