Greasy Fork is available in English.

强制使用等线字体

我就是喜欢等线!【解决显示方框问题】

目前为 2017-04-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         强制使用等线字体
// @namespace    https://coding.net/u/BackRunner/p/GreaseMonkey-JS/git
// @version      1.8
// @description  我就是喜欢等线!【解决显示方框问题】
// @author       BackRunner
// @run-at       document-start
// @include      *
// @grant        unsafeWindow
// @license      MIT
// ==/UserScript==

// ===============
// 遇到显示方框请手动添加排除或反馈
// ===============
(function() {
    var element = document.createElement("link");
    element.rel="stylesheet";
    element.type="text/css";
    element.href='data:text/css,*:not([class*="icon"]):not([class*="fa"]):not([class*="logo"]):not([class*="mi"]):not(i){font-family:DengXian,global-iconfont,stonefont,iknow-qb_share_icons,review-iconfont,mui-act-font,tm-detail-font,office365icons,Material Icons !important;}';
    document.documentElement.appendChild(element);
	
	var modStyle = document.querySelector('#modCSS');
    if (modStyle === null)
    {
        modStyle = document.createElement('style');
        modStyle.id = 'modCSS';
        document.body.appendChild(modStyle);
    }   
	modStyle.innerHTML = '*:not([class*="icon"]):not([class*="fa"]):not([class*="logo"]):not([class*="mi"]):not(i){font-family:DengXian,global-iconfont,stonefont,iknow-qb_share_icons,review-iconfont,mui-act-font,tm-detail-font,office365icons !important;';
})();