GitHub Remove Diff Signs

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

  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. // @match 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. (() => {
  16. "use strict";
  17.  
  18. GM_addStyle(`
  19. .blob-code-inner:before,
  20. .blob-code-marker-context:before,
  21. .blob-code-marker-addition:before,
  22. .blob-code-marker-deletion:before {
  23. visibility: hidden !important;
  24. }`
  25. );
  26.  
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址