Greasy Fork is available in English.

GitHub

Fix formatting

2017-02-16 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

  1. // ==UserScript==
  2. // @name GitHub
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Fix formatting
  6. // @author Ping
  7. // @match https://github.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var head = document.getElementsByTagName('head')[0];
  15. var style = document.createElement('style');
  16. style.type = 'text/css';
  17. style.innerHTML = `
  18. .blob-num, .blob-code-inner {
  19. font-size: 11px;
  20. }
  21. .blob-num, .blob-code {
  22. line-height: 14px;
  23. vertical-align: baseline;
  24. }
  25. .add-line-comment {
  26. height: 18px;
  27. }
  28. `;
  29. head.appendChild(style);
  30. })();