您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script displays an insult when you get a question wrong in your WaniKani Reviews
// ==UserScript== // @name WaniKani Insult Script // @namespace Jerred.scripts // @author Jerred // @description This script displays an insult when you get a question wrong in your WaniKani Reviews // @include https://www.wanikani.com/review/session* // @version 0.2 // @grant none // @run-at document-end // ==/UserScript== $("#answer-form form button").on("click",function() { $("#rude").remove(); setTimeout(function(){ var selectedInsult; if ($("#answer-form form fieldset").hasClass("incorrect")) { selectedInsult = randomInsult(); $("#character").after("<p id=\"rude\" style=\"font-size: 2em\">"+selectedInsult+"</p>"); } }, 100); }); function randomInsult(){ var ind = Math.floor(Math.random() * insultList.length) return insultList[ind]; } var insultList = [ "馬鹿じゃあ?不正解は決まってんだろう。", "馬鹿じゃないの?その程度で何も出来ないくせに。", "不合格です。無理すな。", "I bet you're the person who keeps getting the 'spoon' radical wrong, too", "You’re dumb. Go make me a sandwich.", "Could you just...OK?", "Is that really the best you can do? Pathetic.", "I find your lack of 知性 disturbing.", "Crabigator disapproves.", "Get your shit together, get it all together and put it in a back pack, all your shit, so it's together. And if you gotta take it some where, take it somewhere, you know, take it to the shit store and sell it, or put it in the shit museum. I don't care what you do, you just gotta get it together. - Rick and Morty " ];