Mercurial > ec-userscripts
changeset 148:cc5e741a4c87
Add kakuyomu serif
author | nanaya <me@nanaya.net> |
---|---|
date | Wed, 01 Oct 2025 20:12:27 +0900 |
parents | 15ec4ec958d7 |
children | f4d054e191ed |
files | kakuyomu-serif-webfont.user.js |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kakuyomu-serif-webfont.user.js Wed Oct 01 20:12:27 2025 +0900 @@ -0,0 +1,20 @@ +// ==UserScript== +// @name Kakuyomu serif webfont +// @namespace https://nanaya.net +// @match https://kakuyomu.jp/works/* +// @version 1.0.0 +// @description Use webfont for serif text in Kakuyomu +// @author nanaya +// @grant GM_addStyle +// @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/kakuyomu-serif-webfont.user.js +// ==/UserScript== + +'use strict'; + +/* global GM_addStyle */ +GM_addStyle(` + @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap'); + .widget-episodeBody { + font-family: 'Noto Serif JP', serif; + } +`);