Greasy Fork

自定义站点默认字体(Windows: Microsoft YaHei)

个人向

// ==UserScript==
// @name         自定义站点默认字体(Windows: Microsoft YaHei)
// @version      1.1.0
// @description  个人向
// @author       iSwfe

// 百度系
// @match        *://*.baidu.com/*

// 淘宝/天猫系
// @match        *://*.taobao.com/*
// @match        *://*.tmall.com/*

// 新浪系
// @match        *://*.sina.com.cn/*

// MIUI论坛
// @match        *://*.miui.com/*

// @run-at       document-start
// @grant        unsafeWindow
// @license      MIT
// @namespace    https://greasyfork.org/zh-CN/users/208142-iswfe
// ==/UserScript==

(function() {
    var style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML='*:not([class*="icon"]):not([class*="stonefont"]):not(i){font-family:PingFang SC,Consolas,Microsoft YaHei !important;}';
    //document.getElementsByTagName('HEAD').item(0).appendChild(style);
    document.documentElement.appendChild(style);
})();