您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces specified fonts with alternatives across all page elements
This UserScript automatically replaces specified fonts with alternatives across all webpage elements. Its primary purpose is to improve text readability when font anti-aliasing is disabled, as some fonts (like Helvetica or GitLab Sans) may render poorly without smoothing.
Real-Time Font Replacement
Scans for target fonts (e.g., Helvetica
, GitLab Sans
) and substitutes them with more legible alternatives (Verdana
, Arial
, etc.).
Customizable Replacements
Configure font mappings in the fontReplacements
object:
const fontReplacements = {
"Helvetica": "Verdana",
"Segoe UI": "Arial"
// Add more as needed
};
Comprehensive Coverage
MutationObserver
).Non-Intrusive Execution
grant
permissions required.fontReplacements
to match your preferences.Original Font | Replacement | Reason |
---|---|---|
Helvetica |
Verdana |
Better readability without AA |
GitLab Sans |
Verdana |
Fixes jagged edges |
Roboto Mono |
Courier New |
Crisper monospace rendering |
@match *://*/*
).@font-face
override (commented out) for forced enforcement.Ideal for GitLab, Jira, and other interfaces where fonts degrade without anti-aliasing.
Pro Tip: Uncomment the
console.log
lines to debug font changes in real time.
// Debug example:
// console.log('Replaced:', originalFont, '→', newFont);