GitHub Compatibility for Legacy Browser

improve legacy browser compatibility for github.com

  1. // ==UserScript==
  2. // @name GitHub Compatibility for Legacy Browser
  3. // @name:zh-CN GitHub 旧版浏览器兼容性优化
  4. // @namespace https://jasongzy.com
  5. // @version 1.0.0
  6. // @description improve legacy browser compatibility for github.com
  7. // @description:zh-cn 为 github.com 提升旧版浏览器兼容性
  8. // @author jasongzy
  9. // @match https://github.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
  11. // @grant GM_addStyle
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. const css = `
  19. .prc-Checkbox-Checkbox-gIwWX:before {
  20. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTIgOSI+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzguMjJhLjc1Ljc1IDAgMCAxIDAgMS4wNjFsLTcuMjYgNy4yNmEuNzUuNzUgMCAwIDEtMS4wNjIgMEwuMjAyIDUuMjg1YS43NS43NSAwIDAgMSAxLjA2MS0xLjA2MWwyLjcyNSAyLjcyM0wxMC43MTguMjJhLjc1Ljc1IDAgMCAxIDEuMDYyIDAiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==");
  21. -webkit-mask-position: center;
  22. -webkit-mask-repeat: no-repeat;
  23. -webkit-mask-size: 75%;
  24. }
  25. .sr-only {
  26. display: none !important;
  27. }
  28. `;
  29.  
  30. if (typeof GM_addStyle !== "undefined") {
  31. GM_addStyle(css);
  32. } else {
  33. const styleSheet = document.createElement("style");
  34. styleSheet.type = "text/css";
  35. styleSheet.innerText = css;
  36. document.head.appendChild(styleSheet);
  37. }
  38. })();

QingJ © 2025

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