您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Switches the position of the kunyomi and onyomi readings to match that of anki droid.
// ==UserScript== // @name Jisho kun/on switch // @namespace http://tampermonkey.net/ // @version 0.1 // @description Switches the position of the kunyomi and onyomi readings to match that of anki droid. // @author You // @match https://jisho.org/* // @icon https://shimox.s-ul.eu/RKGXemM1 // @run-at document-start // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; window.addEventListener("load", () => { let kun = document.querySelector(".kun") let on = document.querySelector(".on") if(kun){ kun.style.transform = `translate(0, ${on.clientHeight}px)`; on.style.transform = `translate(0, -${kun.clientHeight}px)`; } }, false) })();