您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Forces specified websites (from a customizable list) to use the Aptos font family.
This Userscript allows you to selectively apply the Aptos font family to specific websites that you add to a customizable "target list." All other websites will remain unaffected and display their original fonts.
document-start
to minimize Flash of Unstyled Content (FOUC) on targeted sites.Font Forcing on Targeted Sites: The script will only change the font to Aptos on websites that are present in your "Aptos Target List". Other websites will display their default fonts. Initially, your target list will be empty, so no sites will have their font changed until you add them.
Managing the Aptos Target List: You can manage the target list through the Userscript commands found in your Userscript Manager's menu (usually accessible by clicking the extension's icon in your browser toolbar):
To Add the Current Site to the Aptos Target List (Force Aptos):
[Force Aptos on Sites] Force Aptos on: example.com
.sub.example.com
) or the base domain (e.g., example.com
). Adding a base domain will also target all its subdomains for the Aptos font.To Remove a Site from the Aptos Target List (Stop Forcing Aptos):
[Force Aptos on Sites] Stop forcing Aptos for a site...
.To View/Edit the Entire Aptos Target List:
[Force Aptos on Sites] View/Edit Aptos Target List
.On targeted sites, the script attempts to apply fonts in the following order:
"Aptos", "Aptos Display", "Aptos Narrow", "Aptos Serif", "Aptos Mono", "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI Variable Small", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif
!important
to override existing website styles on targeted sites. On very complex sites, there might still be elements that resist the change, or unintended layout shifts, though this is rare for font changes.*
Selector: The script applies the font to all elements (*
) on targeted pages. A commented-out, more specific list of selectors is available in the code if you experience issues.This script is released under the MIT License. You are free to use, modify, and distribute it as per the license terms.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址