Font Override

Overrides the font specified by web pages and unifies it to your preferred, locally installed font.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
hakhatz2486
Dziennych instalacji
3
Wszystkich instalacji
8
Oceny
0 0 0
Wersja
0.1.0
Utworzono
24-07-2026
Zaktualizowano
24-07-2026
Rozmiar
12,3 KB
Licencja
MIT
Dotyczy
Wszystkie strony

font-override

English | 日本語

A Chrome userscript that forcibly overrides the fonts specified by web pages and unifies them to your preferred, locally installed fonts. By default, it unifies fonts to Noto Sans JP / Noto Serif JP / PlemolJP, but you can change the target fonts by editing the constants at the top of the script.

Features

  • Forcibly unifies fonts specified by web pages — those equivalent to sans-serif, serif, or monospace — to your locally installed fonts
  • Leaves fonts that don't match the above (math, fantasy, cursive, emoji, etc.) unchanged
  • Automatically excludes major icon fonts such as Font Awesome and Material Icons to prevent broken "tofu" glyph rendering
  • Automatically follows dynamically added content, such as SPA navigation and infinite scroll (via MutationObserver)

Requirements

  • Chrome
  • A userscript manager that supports GM_addStyle (style injection), such as Violentmonkey or Tampermonkey (Greasemonkey is not supported)

Default Fonts

By default, fonts are unified to the following (all of which must be installed locally). You can change them by editing the FONT_SANS / FONT_SERIF / FONT_MONO constants.

If the specified fonts are not installed locally, the browser's default fallback fonts will be used instead.

Installation

  1. Install a userscript manager such as Violentmonkey or Tampermonkey.
  2. Add font-override.user.js as a new script from your userscript manager's dashboard (open the file to import it, or copy and paste its contents).

Usage

Once enabled, it is automatically applied to all sites. No additional configuration is required.

To change the target fonts, edit the values of the three constants FONT_SANS / FONT_SERIF / FONT_MONO at the top of font-override.user.js.

Notes

  • Shadow DOM: If a Web Component re-specifies its font inside its own shadow root, CSS from outside cannot reach it and the font will not be overridden.
  • Inline style !important: If an element has style="font-family: X !important" set directly, it cannot be overridden from CSS.
  • Icon exclusion list: The list of known icon font names and icon class names is limited to representative examples and does not aim for complete coverage.
  • Greasemonkey: Not currently supported, as it does not implement GM_addStyle. Please use a GM_addStyle-compatible manager such as Violentmonkey or Tampermonkey.

Changelog

See CHANGELOG.md.

License

MIT License