This makes the purple vocabulary items a little bit smaller, so they appear more in line with the Kanji and Radicals.
// ==UserScript== // @name Make Vocabulary Items a bit smaller. // @namespace http://tampermonkey.net/ // @version 0.2 // @description This makes the purple vocabulary items a little bit smaller, so they appear more in line with the Kanji and Radicals. // @author You // @match https://www.wanikani.com/subjects/* // @icon https://www.google.com/s2/favicons?sz=64&domain=wanikani.com // @grant none // @license MIT // ==/UserScript== (function() { const contentDiv = document.querySelector('.character-header__content'); const charactersDiv = document.querySelector('.character-header__characters'); const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.type === 'attributes' && mutation.attributeName === 'class' && mutation.target.className === 'character-header character-header--vocabulary') { charactersDiv.style.fontSize = '80px'; } else { charactersDiv.style.fontSize = '100px'; } }); }); observer.observe(contentDiv.parentNode, { attributes: true }); })();