System Fonts

让网页强制使用系统字体

  1. // ==UserScript==
  2. // @name System Fonts
  3. // @name:en System Fonts
  4. // @name:zh-CN 强制系统字体
  5. // @name:zh-TW 強制系統字體
  6. // @namespace https://greasyfork.org/scripts/528512
  7. // @version 1.0.2
  8. // @description 让网页强制使用系统字体
  9. // @description:en Let web pages force the use of system fonts
  10. // @description:zh-CN 让网页强制使用系统字体
  11. // @description:zh-TW 讓網頁強制使用系統字體
  12. // @author Deepseek
  13. // @match *://*/*
  14. // @exclude *://fanqienovel.com/reader/*
  15. // @exclude *://*.android.google.cn/*
  16. // @exclude *://ai.qaqgpt.com/*
  17. // @license MIT
  18. // @run-at document-start
  19. // ==/UserScript==
  20.  
  21. (function() {
  22. const css = document.createElement('style');
  23. css.innerHTML = `
  24. *:not([class^="fa-"],[class*=" fa-"],[class^="material-"],[class*=" material-"],[class*="icon"],[class^="icon-"],[aria-hidden=true]) {
  25. font-family: system-ui !important;
  26. }
  27. `;
  28. document.head.appendChild(css);
  29. })();