WK FiddleSettings

enter something useful

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         WK FiddleSettings
// @namespace    WKfiddle
// @version      0.2
// @description  enter something useful
// @author       Ethan
// @include      http*://www.wanikani.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

//Some of this code is from wanikani.com © Tofugu LLC & Viet Hoang, Relased under MIT license

//Rewrite Srs animation to fade down on wrong answer
if (typeof Srs !== "undefined")
    Srs.newSrs = function (e,t){var n,r,i,s,o,u;return o=(e.mi||0)+(e.ri||0),o===0?(n=Srs.name(t+1),i="srs-up",s="Your item has leveled up in the spaced repetition system"):(r=t>=5?2*Math.round(o/2):1*Math.round(o/2),n=t-r<1?1:t-r,n=Srs.name(n),i="srs-down",s="Your item has leveled down in the spaced repetition system"),u=$("<div></div>",{"class":"srs"}).appendTo("#question-type"),$("<div></div>",{"class":i+" "+"srs-"+n+" animated fadeIn" + i[4].toUpperCase()+i.substr(5),title:s}).appendTo(u)};

//Fix search bar for consistency in forums
if ($("#main-ico-search i").attr("class") === "icon-comment")
    $("#search-form").attr("action", "/chat/search/posts");