Read Golang Doc Better

go to read with better override style!

  1. // ==UserScript==
  2. // @name Read Golang Doc Better
  3. // @name:zh 更美的 Golang 文档
  4. // @namespace https://littleboyharry.me
  5. // @version 1.0.1
  6. // @description go to read with better override style!
  7. // @author LittleboyHarry
  8.  
  9. // @match https://golang.org/*
  10. // @match https://blog.golang.org/*
  11. // @grant GM_addStyle
  12. // @run-at document-start
  13. // ==/UserScript==
  14.  
  15. GM_addStyle(`
  16.  
  17. html {
  18. font-size: 1em;
  19. }
  20.  
  21. body {
  22. background: #FDF6E3;
  23. }
  24.  
  25. main {
  26. align-text: center;
  27. }
  28.  
  29. main#page.Site-content>.container {
  30. display: inline-block;
  31. max-width: 800px;
  32. width: 90%;
  33. }
  34.  
  35. .container p{
  36. line-height: 1.5;
  37. }
  38.  
  39. `);