// ==UserScript== // @name 强制使用微软雅黑 // @namespace https://coding.net/u/BackRunner/p/GreaseMonkey-JS/git // @version 1.11 // @description 我就是喜欢微软雅黑!【解决显示方框问题】 // @author BackRunner // @include * // @run-at document-start // @grant unsafeWindow // @license MIT // @downloadURL none // ==/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:Microsoft YaHei,global-iconfont,stonefont,iknow-qb_share_icons,review-iconfont,mui-act-font,tm-detail-font,office365icons !important;}'; document.documentElement.appendChild(element); setTimeout(function(){ 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:Microsoft YaHei,global-iconfont,stonefont,iknow-qb_share_icons,review-iconfont,mui-act-font,tm-detail-font,office365icons !important;'; },300); })();