Mkana+

パソコンや スマホで 表示できない フォントを 表示するために,フォントを 変更します。

  1. // ==UserScript==
  2. // @name Mkana+
  3. // @namespace https://lit.link/toracatman
  4. // @version 2025-03-08
  5. // @description パソコンや スマホで 表示できない フォントを 表示するために,フォントを 変更します。
  6. // @author toracatman
  7. // @match *://*/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @sandbox DOM
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. var css = `@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans+KR&family=Noto+Serif+Hentaigana&display=swap');
  15.  
  16. @font-face {
  17. font-family: "Mkana+";
  18. src: local("Mkana+"),
  19. url("https://toracatman.github.io/fonts/mkanaplus.woff2") format("woff2"),
  20. url("https://toracatman.github.io/fonts/mkanaplus.woff") format("woff");
  21. font-display: swap;
  22. unicode-range: U+0-F8FF, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23-FA24, U+FA27-FA29, U+FB00-2F7FF, U+2FA20-10FFFF;
  23. }
  24. @font-face {
  25. font-family: "MgenKana+";
  26. src: local("MgenKana+"),
  27. url("https://toracatman.github.io/fonts/mgenkanaplus.woff2") format("woff2"),
  28. url("https://toracatman.github.io/fonts/mgenkanaplus.woff") format("woff");
  29. font-display: swap;
  30. unicode-range: U+0-F8FF, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23-FA24, U+FA27-FA29, U+FB00-2F7FF, U+2FA20-10FFFF;
  31. }
  32. @font-face {
  33. font-family: "Nishiki-teki-Braille";
  34. src: local("Nishiki-teki"),
  35. url("https://toracatman.github.io/fonts/nishiki-teki.woff2") format("woff2"),
  36. url("https://toracatman.github.io/fonts/nishiki-teki.woff") format("woff");
  37. font-display: swap;
  38. unicode-range: U+2800-28FF;
  39. }
  40. @font-face {
  41. font-family: "Jigmo";
  42. src: local("Jigmo"),
  43. url("https://toracatman.github.io/fonts/Jigmo.woff2") format("woff2"),
  44. url("https://toracatman.github.io/fonts/Jigmo.woff") format("woff");
  45. font-display: swap;
  46. unicode-range: U+2E80-302D, U+3030-312F, U+3190-9FFF, U+F900-FAFF, U+FE11-FE12, U+FE51, U+FF61-FFDF, U+1AFF0-1B16F, U+1D372-1D376, U+1F000-1F02F, U+1F200-1F2FF, U+1FA60-1FA6D, U+100000-10FFFF;
  47. }
  48. @font-face {
  49. font-family: "Jigmo2";
  50. src: local("Jigmo2"),
  51. url("https://toracatman.github.io/fonts/Jigmo2.woff2") format("woff2"),
  52. url("https://toracatman.github.io/fonts/Jigmo2.woff") format("woff");
  53. font-display: swap;
  54. }
  55. @font-face {
  56. font-family: "Jigmo3";
  57. src: local("Jigmo3"),
  58. url("https://toracatman.github.io/fonts/Jigmo3.woff2") format("woff2"),
  59. url("https://toracatman.github.io/fonts/Jigmo3.woff") format("woff");
  60. font-display: swap;
  61. }
  62.  
  63. body {
  64. font-family: "Mkana+", "MgenKana+", "Nishiki-teki-Braille", "Noto Color Emoji", "Noto Sans KR", "Noto Serif Hentaigana", "Jigmo", "Jigmo2", "Jigmo3", sans-serif;
  65. }`;
  66.  
  67. var css2 = `* {
  68. font-family: "Mkana+", "MgenKana+", "Nishiki-teki-Braille", "Noto Sans KR", "Noto Serif Hentaigana", "Jigmo", "Jigmo2", "Jigmo3", sans-serif !important;
  69. }`;
  70.  
  71. (() => {
  72. var style = document.createElement("style");
  73. style.textContent = css;
  74. document.body.appendChild(style);
  75. if (location.origin == "https://x.com") style.textContent += css2;
  76. })();