Mercurial > ec-userscripts
comparison kakuyomu-serif-webfont.user.js @ 149:f4d054e191ed default tip
Reduce FOUC
author | nanaya <me@nanaya.net> |
---|---|
date | Wed, 01 Oct 2025 20:26:16 +0900 |
parents | cc5e741a4c87 |
children |
comparison
equal
deleted
inserted
replaced
148:cc5e741a4c87 | 149:f4d054e191ed |
---|---|
1 // ==UserScript== | 1 // ==UserScript== |
2 // @name Kakuyomu serif webfont | 2 // @name Kakuyomu serif webfont |
3 // @namespace https://nanaya.net | 3 // @namespace https://nanaya.net |
4 // @match https://kakuyomu.jp/works/* | 4 // @match https://kakuyomu.jp/works/* |
5 // @version 1.0.0 | 5 // @version 1.0.1 |
6 // @description Use webfont for serif text in Kakuyomu | 6 // @description Use webfont for serif text in Kakuyomu |
7 // @author nanaya | 7 // @author nanaya |
8 // @grant GM_addStyle | 8 // @grant GM_addStyle |
9 // @run-at document-start | |
9 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/kakuyomu-serif-webfont.user.js | 10 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/kakuyomu-serif-webfont.user.js |
10 // ==/UserScript== | 11 // ==/UserScript== |
11 | 12 |
12 'use strict'; | 13 'use strict'; |
13 | 14 |
14 /* global GM_addStyle */ | 15 /* global GM_addStyle */ |
15 GM_addStyle(` | 16 GM_addStyle(` |
16 @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap'); | 17 @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap'); |
17 .widget-episodeBody { | 18 .widget-episodeBody.widget-episodeBody { |
18 font-family: 'Noto Serif JP', serif; | 19 font-family: 'Noto Serif JP', serif; |
19 } | 20 } |
20 `); | 21 `); |