WaniKani reading font size

Bump the font size of kana in WaniKani reading pages to something more legible.

目前为 2022-10-21 提交的版本。查看 最新版本

// ==UserScript==
// @name         WaniKani reading font size
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  Bump the font size of kana in WaniKani reading pages to something more legible.
// @author       damyst
// @match        https://www.wanikani.com/lesson/session
// @match        https://www.wanikani.com/vocabulary*
// @match        https://www.wanikani.com/kanji*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=wanikani.com
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }

    addGlobalStyle('#supplement-kan-reading :lang(ja) { font-size: 1.8rem; }');
    addGlobalStyle('#supplement-kan-reading-mne :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('#supplement-kan-reading-hnt :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('#supplement-voc-reading :lang(ja) { font-size: 1.8rem; }');
    addGlobalStyle('#supplement-voc-reading-exp :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('#supplement-voc-meaning-exp :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('.subject-section--reading :lang(ja) { font-size: 1.8rem; }');

    addGlobalStyle('#meaning :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('#reading :lang(ja) { font-size: 1.5rem; }');
    addGlobalStyle('#context :lang(ja) { font-size: 1.5rem; }');

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址