Font Override

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
hakhatz2486
Installazioni giornaliere
3
Installazioni totali
8
Valutazione
0 0 0
Versione
0.1.0
Creato il
24/07/2026
Aggiornato il
24/07/2026
Dimensione
12,3 KB
Licenza
MIT
Applica a
Tutti i siti

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