CSS: correction of font family on various sites

Correction of font family to substitute unusual fonts by more common ones

目前为 2022-02-05 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: correction of font family on various sites
  3. // @description Correction of font family to substitute unusual fonts by more common ones
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://greasyfork.org/en/users/309172-max44
  7. // @include https://f.vision/*
  8. // @include http://f.vision/*
  9. // @include https://www.startpage.com/*
  10. // @include http://www.startpage.com/*
  11. // @icon https://www.iconninja.com/files/642/487/770/network-website-web-internet-icon.png
  12. // @version 1.1.2
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. var css = `
  18. body {
  19. font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  20. }
  21. `;
  22.  
  23. if (typeof GM_addStyle != 'undefined') {
  24. GM_addStyle(css);
  25. } else if (typeof PRO_addStyle != 'undefined') {
  26. PRO_addStyle(css);
  27. } else if (typeof addStyle != 'undefined') {
  28. addStyle(css);
  29. } else {
  30. var node = document.createElement('style');
  31. node.type = 'text/css';
  32. node.appendChild(document.createTextNode(css));
  33. document.documentElement.appendChild(node);
  34. }
  35. })();