统一浏览器字体:所有网站使用微软雅黑,防止技术文档使用特殊字体库,无法正常浏览!
// ==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; }");
*/
})();