您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the Lessons number on Wanikani when the lowest item percentage is lower than 75%.
// ==UserScript== // @name Lesson Remover // @namespace http://tampermonkey.net/ // @version 0.3 // @description Removes the Lessons number on Wanikani when the lowest item percentage is lower than 75%. // @author Sinom // @match https://www.wanikani.com/* // @grant none // ==/UserScript== (function() { let lowestPercentage = $('.low-percentage.kotoba-table-list table td span.pull-right').html(); if (lowestPercentage != null){ if (Number(lowestPercentage.substring(0,1))<75) { replace(); } } function replace() { let row = $('.recent-unlocks').closest(".row"); $('.navigation-shortcut:first-child a span').html('0'); $('.navigation-shortcut:first-child a span').css('background', '#aaa'); $('.recent-unlocks').parent().css("display", "none"); $('.low-percentage').parent().addClass("span6"); $('.recent-retired').parent().addClass("span6"); console.log($('.recent-unlocks').closest(".row")); } })();