# HG changeset patch # User nanaya # Date 1759317147 -32400 # Node ID cc5e741a4c8714714764d37e657d75970489998b # Parent 15ec4ec958d7aac49a1fa54f780cec4402743440 Add kakuyomu serif diff -r 15ec4ec958d7 -r cc5e741a4c87 kakuyomu-serif-webfont.user.js --- /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; + } +`);