您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables the undo button on the last SRS stage
// ==UserScript== // @name Bunpro: Disable Undo on SRS 11 reviews // @namespace http://tampermonkey.net/ // @version 1.0.3 // @description Disables the undo button on the last SRS stage // @author Kumirei // @include *bunpro.jp/* // @exclude *community.bunpro.jp* // @require https://greasyfork.org/scripts/370623-bunpro-helpful-events/code/Bunpro:%20Helpful%20Events.js?version=974369 // @grant none // ==/UserScript== (function() { var $ = window.$; const disable_srs = 11; // Disables undo on all items at and above this srs level $('html')[0].addEventListener('new-review-item', ()=>{ var srs = $('.srs-tracker')[0].innerText.split(' ')[1]; var button_moved = $('head .oops-button').length; if (srs >= disable_srs && !button_moved) $('head').append($('.oops-button')); else if (srs < disable_srs && button_moved) $('.undo-button').before($('.oops-button')); }); })();