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