Greasy Fork

Greasy Fork is available in English.

质感字体

让每个页面的字体变得有质感 字体换为萍方字体并添加字体阴影

目前为 2019-08-19 提交的版本。查看 最新版本

// ==UserScript==
// @name         质感字体
// @namespace    http://svnzk.github.io/
// @version      0.9
// @description  让每个页面的字体变得有质感 字体换为萍方字体并添加字体阴影
// @author       svnzk
// @match        https://*/*
// @match        http://*/*
// @run-at       document-start
// @grant        none
// ==/UserScript==
//2019-08-19 更新 v0.9 : [修复] 修复有些文字没有阴影的问题 [新增] 添加微软雅黑粗体 让没安装萍方字体的用户也可以感受质感字体
(function() {
var font_style = document.createElement("style");
    font_style.type = 'text/css';
        font_style.innerHTML = " *:not([class*='icon']):not(.fa):not(.fas):not(i) {font-family: 'PingFang SC','Microsoft YaHei','Source Han Sans SC','Noto Sans CJK SC','HanHei SC', 'sans-serif' ,'Icons' ,'brand-icons' ,'FontAwesome','Material Icons','Material Icons Extended','Glyphicons Halflings'  !important;} *{text-shadow:1px 1px 3px #c3c3c3 !important; font-weight:bold !important;font-family: 'PingFang SC','Microsoft YaHei';}";
document.head.append(font_style);
})();