您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Meaning/Reading writen in diferent colors so you don't get confused
当前为
// ==UserScript== // @name WK Colored Meaning/Reading // @namespace wkcoloredmr // @version 0.4 // @description Meaning/Reading writen in diferent colors so you don't get confused // @author lararal // @include https://www.wanikani.com/review/session // @license MIT; http://opensource.org/licenses/MIT // @run-at document-end // @grant none // ==/UserScript== /* * WK Colored Meaning/Reading * * I often write the reading instead of the meaning and vice versa, getting * a wrong answer even if I would get it right. I decided to color it differently * so I woud do it less often. * * Used the following script as a reference: * https://www.wanikani.com/chat/api-and-third-party-apps/11700 * */ /* * Changelog * * 0.1 (6 Nov 2016) * - Started Working On The script. * */ wkcoloredmr = {}; (function(gobj){ function makeItColored() { var type; type = document.getElementById('question-type'); if(type.className == "reading"){ type.setAttribute('style', 'color:green'); console.log("inside mic reading"); return type; } if(type.className == "meaning"){ type.setAttribute('style', 'color:#E6880F'); console.log("inside mic meaning") return type; } return null; } makeItColored(); }(wkcoloredmr));