GitHub Remove Diff Signs

A userscript that hides the "+" and "-" from code diffs

当前为 2021-02-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GitHub Remove Diff Signs
  3. // @version 1.3.2
  4. // @description A userscript that hides the "+" and "-" from code diffs
  5. // @license MIT
  6. // @author Rob Garrison
  7. // @namespace https://github.com/Mottie
  8. // @include https://github.com/*
  9. // @run-at document-idle
  10. // @grant GM_addStyle
  11. // @icon https://github.githubassets.com/pinned-octocat.svg
  12. // @supportURL https://github.com/Mottie/GitHub-userscripts/issues
  13. // ==/UserScript==
  14. (() => {
  15. "use strict";
  16.  
  17. GM_addStyle(`
  18. .blob-code-inner:before,
  19. .blob-code-marker-context:before,
  20. .blob-code-marker-addition:before,
  21. .blob-code-marker-deletion:before {
  22. visibility: hidden !important;
  23. }`
  24. );
  25.  
  26. })();