Font Override

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
hakhatz2486
Усталяванняў за дзень
3
Усяго ўсталяванняў
8
Рэйтынг
0 0 0
Версія
0.1.0
Створаны
24.07.2026
Абноўлены
24.07.2026
Памер
12.3 КБ
Ліцэнзія
MIT
Ужываецца на
Усе сайты

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