WaniKani Hide Button in Review

Hide overly clunky buttons in Review and account for the size

目前為 2017-11-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name         WaniKani Hide Button in Review
// @version      0.1.3
// @description  Hide overly clunky buttons in Review and account for the size
// @author       polv
// @match        https://www.wanikani.com/review/session
// @grant        none
// @run-at		document-start
// @namespace https://gf.qytechs.cn/users/160259
// ==/UserScript==

(function() {
    'use strict';

    var button_to_hide = [1, 3];
    var button_name = [
        /*0*/ "option-wrap-up",
        /*1*/ "option-last-items",
        /*2*/ "option-item-info",
        /*3*/ "option-kana-chart",
        /*4*/ "option-audio",
        /*5*/ "option-double-check",
        /*6*/ "option-retype",
        /*7*/ //"option-mark0",
        /*8*/ //"option-mark1",
        /*9*/ //"option-mark2",
        /*10*/ //"option-mark3",
        /*11*/ //"option-mark4"
        ];
    
    for(var i=0; i<button_to_hide.length; i++) {
        document.getElementById(button_name[button_to_hide[i]]).style.display = "none";
    }
    
    for(i=0; i<button_name.length; i++) {
        document.getElementById(button_name[i]).style.width = 99/(button_name.length - button_to_hide.length) + "%";
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址