全局思源宋体代码

在线思源宋体

Posted by Ajiao on December 17, 2023

更新时间:20231207

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// ==UserScript==
// @name         全局雅黑宋体
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  全局雅黑宋体
// @author       Ryan
// @match          *://*/*
// @grant        GM_addStyle
// ==/UserScript==
//GM_addStyle("@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700&display=swap');")
GM_addStyle("@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@500;700&display=swap');")
GM_addStyle("*{font-family: 'Noto Serif SC', sans-serif;}");
GM_addStyle(".info_content p, .info_content span, .info_content font{font-family: 'Noto Serif SC', sans-serif !important;}");

(function() {
    'use strict';

    // Your code here...
})();