githubwidth

resizes github repos for smaller window widths.

当前为 2020-06-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name githubwidth
  3. // @version 0.0
  4. // @description resizes github repos for smaller window widths.
  5. // @match http://github.com/*
  6. // @match https://github.com/*
  7. // @match http://*.github.com/*
  8. // @match https://*.github.com/*
  9. // @run-at document-idle
  10. // @namespace https://greasyfork.org/users/<my_id_here>
  11. // ==/UserScript==
  12.  
  13. s = document.getElementsByClassName("repository-content")[0].parentNode.style;
  14. s.width = "94vw";
  15. s.margin = "0mm";