Skip to content

◆デフォルトフォント by syon

Details

Authorsyon

LicenseNo License

Categoryamazon

Created

Updated

Size1.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

ページ言語が日本語のサイトにて、フォントをブラウザ設定のものに上書き・字詰めします。
ただし、ページ内の要素にサイト独自のフォント設定がある場合、そちらが優先されます。

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           ◆デフォルトフォント
@namespace      userstyles.world
@version        2024-05-31
==/UserStyle== */
@-moz-document url-prefix("http") {

  :is(html[lang="ja"], html[lang="ja-jp"]) :is(body, div:not(.fa, .spm-ico, .google-symbols),
  :not(.fa, .spm-ico, .google-symbols, [class*="icon"])),
  .markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Segoe UI Emoji";
    font-feature-settings: "palt";
  }

  html :is(pre, pre span, code, code span),
  html body :is(#ace-editor, .ace_editor, .monaco-editor) :is(div, span) {
    font-family: monospace, "Segoe UI Emoji" !important;
  }

  /* Material Icons */
  .material-icons {
    font-family: 'Material Icons', 'Material Icons Extended' !important;
  }

  /* Material Symbols */
  .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
  }

  md-icon,
  .icon-button.standard {
    font-family: var(--md-icon-font, Material Symbols Outlined) !important;
  }

  /* MS */
  body[data-theme*="fluent"] i {
    font-family: FabricMDL2Icons !important;
  }

  /* IcoMoon */
  span[class*="icon--"] {
    font-family: icomoon !important;
  }

  /* Glyphicon */
  span.glyphicon {
    font-family: 'Glyphicons Halflings' !important;
  }

  /* Rexicon */
  html body span.rexicon {
    font-family: rexicon !important;
  }

  /* Rakuten */
  .icon--2sY_j:before {
    font-family: ichiba-icon-font, sans-serif;
  }
}

@-moz-document regexp("https?://.*\\.jp.*") {

  html body,
  html div:not(.fa, .spm-ico, .google-symbols, [class*="icon"], [class*="symbol"]),
  html :not(.fa, .spm-ico, .google-symbols, [class*="icon"], [class*="symbol"]) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Segoe UI Emoji" !important;
    font-feature-settings: "palt";
  }
}

Reviews

No reviews yet.