Font Substitute: PingFang SC

Substitute fonts with PingFang SC.

当前为 2023-06-19 提交的版本,查看 最新版本

// ==UserScript==
// @name                 Font Substitute: PingFang SC
// @version              1.1
// @author               softforum
// @description          Substitute fonts with PingFang SC.
// @license MIT 
// @match                *://*/*
// @run-at               document-start
// @grant                GM_addStyle
// @namespace https://greasyfork.org/users/1106490
// ==/UserScript==

GM_addStyle(`
@font-face {
    font-family: "SimSun";
    src: local("PingFang SC");
}

@font-face {
    font-family: "宋体";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "Microsoft Yahei";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "Microsoft Yahei UI";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "微软雅黑";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "STHeiTi";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "custom-ht";
    src: local("PingFangSC-Regular");
}

@font-face {
    font-family: "Arial";
    src: local("PingFangSC-Regular");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Times";
    src: local("PingFangSC-Regular");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Times New Roman";
    src: local("PingFangSC-Regular");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Helvetica";
    src: local("PingFangSC-Regular");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: "Noto Sans";
    src: local("PingFangSC-Regular");
    unicode-range: U+4E00-9FFF;
}
`);