Thinner github.com

Revert the new UI's nav title width to the old one.

  1. // ==UserScript==
  2. // @name Thinner github.com
  3. // @name:zh-CN 更窄的 Github.com
  4. // @namespace BigWater
  5. // @description Revert the new UI's nav title width to the old one.
  6. // @description:zh-CN 压缩新 UI 的导航条, 看起来更像老界面
  7. // @match https://github.com/*
  8. // @grant none
  9. // @version 0.1.1
  10. // @author BigWater
  11. // @run-at document-idle
  12. // ==/UserScript==
  13.  
  14. function $(e) {
  15. return document.querySelector(e);
  16. }
  17.  
  18. (function () {
  19. setTimeout(function() {
  20. $('.pagehead.repohead').className += ' container-xl';
  21. }, 100);
  22. })();