Greasy Fork

Greasy Fork is available in English.

网站字体统一使用微软雅黑

统一浏览器字体:所有网站使用微软雅黑,防止技术文档使用特殊字体库,无法正常浏览!

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         网站字体统一使用微软雅黑
// @namespace    blak-kong
// @version      0.3
// @description  统一浏览器字体:所有网站使用微软雅黑,防止技术文档使用特殊字体库,无法正常浏览!
// @author       blak-kong
// @icon         https://www.google.com/s2/favicons?sz=64&domain=web3doc.top
// @grant        GM_addStyle
// @run-at       document-start
// @match        *://*/*
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    GM_addStyle("*:not(i) { font-family: '微软雅黑','Microsoft YaHei' !important;text-shadow : 0.01em 0.01em 0.01em #999999; }")

    /**
    function addStyle(rules) {
        var styleElement = document.createElement('style');
        styleElement.type = 'text/css';
        document.getElementsByTagName('head')[0].appendChild(styleElement);
        styleElement.appendChild(document.createTextNode(rules));
    }
    addStyle("*{ font-family: '微软雅黑','Microsoft YaHei' !important;text-shadow : 0.01em 0.01em 0.01em #999999; }");
    */
})();