[en]
Replace fonts hard coded by websites.
You may want to edit this userscript and change replace rules.
By default, it will replace common Chinese fonts to "Source Han Sans".
-
This plugin will not work for websites that didn't hard-coded fonts, you can modify the fonts directly in your browser settings (e.g.
chrome://settings/fonts
) or use extensions. -
Due to a bug in Chrome for Windows, font replace won't work if the font is installed in the user directory.
- Please uninstall your custom font from Windows (Required)
- Choose "Install for all users" when reinstalling the font (Show more options -> Install for all users).
[zh-TW]
將網站寫死在 CSS 中的字型替換成你想要的字型。
您可能需要手動修改代碼,以自訂替換規則。
本程式預設會將常見的中文字型替換為思源黑體(Source Han Sans)。
-
對於沒有寫死字型的網站,本腳本無法替換字型,但您可以直接在瀏覽器設定中修改字型(如
chrome://settings/fonts
)或使用擴充程式。 -
由於 Windows 版 Chrome 瀏覽器的一個 BUG,如果字型安裝在使用者目錄下,則字型替換無法生效。
- 請從 Windows 解除安裝您的自訂字型(重要)
- 在重新安裝字型時選擇「為所有使用者安裝」(顯示更多選項 -> 為所有使用者安裝)。
[zh-CN]
将网站硬编码在 CSS 中的字体替换成你想要的字体。
您可能需要手动修改此脚本,以自定义替换规则。
本脚本默认会将常见的中文字体替换为思源黑体(Source Han Sans)。
-
对于没有硬编码字体的网站,本脚本无法替换字体,但您可以直接在浏览器设置中修改字体(如
chrome://settings/fonts
)或使用扩展程序。 -
由于 Windows 版 Chrome 浏览器的一个 BUG,如果字体安装在用户目录下,则字体替换无法生效。
- 请从 Windows 卸载您的自定义字体(重要)
- 在重新安装字体时选择“为所有用户安装”(显示更多选项 -> 为所有用户安装)。