強制系統字體

讓網頁強制使用系統字體

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         System Fonts
// @name:en      System Fonts
// @name:zh-CN   强制系统字体
// @name:zh-TW   強制系統字體
// @namespace    https://greasyfork.org/scripts/528512
// @version      1.0.2
// @description  让网页强制使用系统字体
// @description:en  Let web pages force the use of system fonts
// @description:zh-CN    让网页强制使用系统字体
// @description:zh-TW    讓網頁強制使用系統字體
// @author       Deepseek
// @match        *://*/*
// @exclude *://fanqienovel.com/reader/*
// @exclude *://*.android.google.cn/*
// @exclude *://ai.qaqgpt.com/*
// @license      MIT
// @run-at       document-start
// ==/UserScript==

(function() {
    const css = document.createElement('style');
    css.innerHTML = `
        *:not([class^="fa-"],[class*=" fa-"],[class^="material-"],[class*=" material-"],[class*="icon"],[class^="icon-"],[aria-hidden=true]) {
            font-family: system-ui !important;
        }
    `;
    document.head.appendChild(css);
})();