https://github.com/coxxs/font-replacer
Replace fonts hard coded by websites.
https://github.com/coxxs/font-replacer
font userscript
Last synced: about 2 months ago
JSON representation
Replace fonts hard coded by websites.
- Host: GitHub
- URL: https://github.com/coxxs/font-replacer
- Owner: Coxxs
- License: mit
- Created: 2022-01-02T15:08:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T17:20:13.000Z (almost 4 years ago)
- Last Synced: 2025-10-13T00:28:02.200Z (8 months ago)
- Topics: font, userscript
- Language: JavaScript
- Homepage: https://greasyfork.org/scripts/437944-font-replacer
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# font-replacer.user.js
[Greasy Fork](https://greasyfork.org/scripts/437944-font-replacer)
----
**[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".
## If it doesn't work...
- 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](https://chrome.google.com/webstore/detail/advanced-font-settings/caclkomlalccbpcdllchkeecicepbmbm).
- Due to a bug in Chrome for Windows, font replace won't work if the font is installed in the user directory.
1. Please **uninstall your custom font** from Windows (Required)
2. 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`)或使用[擴充程式](https://chrome.google.com/webstore/detail/advanced-font-settings/caclkomlalccbpcdllchkeecicepbmbm)。
- 由於 Windows 版 Chrome 瀏覽器的一個 BUG,如果字型安裝在使用者目錄下,則字型替換無法生效。
1. 請從 Windows **解除安裝您的自訂字型**(重要)
2. 在重新安裝字型時**選擇「為所有使用者安裝」**(顯示更多選項 -> 為所有使用者安裝)。
----
**[zh-CN]**
将网站硬编码在 CSS 中的字体替换成你想要的字体。
**您可能需要手动修改此脚本,以自定义替换规则。**
本脚本默认会将常见的中文字体替换为思源黑体(Source Han Sans)。
## 如果脚本不起作用...
- 对于没有硬编码字体的网站,本脚本无法替换字体,但您可以直接在浏览器设置中修改字体(如 `chrome://settings/fonts`)或使用[扩展程序](https://chrome.google.com/webstore/detail/advanced-font-settings/caclkomlalccbpcdllchkeecicepbmbm)。
- 由于 Windows 版 Chrome 浏览器的一个 BUG,如果字体安装在用户目录下,则字体替换无法生效。
1. 请从 Windows **卸载您的自定义字体**(重要)
2. 在重新安装字体时**选择“为所有用户安装”**(显示更多选项 -> 为所有用户安装)。