您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Disables the backspace functionality in reviews
当前为
// ==UserScript== // @name Bunpro: Disable Backspace Undo // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description Disables the backspace functionality in reviews // @author Kumirei // @include *bunpro.jp/* // @exclude *community.bunpro.jp* // @require http://greasyfork.icu/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012 // @require http://greasyfork.icu/scripts/370623-bunpro-helpful-events/code/Bunpro:%20Helpful%20Events.js?version=615700 // @grant none // ==/UserScript== (function() { var $ = window.$; $('html')[0].addEventListener('quiz-page', ()=>{ var input_elem = $('#study-answer-input'); $('body').keydown((event)=>{ if (event.keyCode == 8 && input_elem.css('background-color') == 'rgb(229, 115, 115)') { event.stopPropagation(); input_elem.blur(); } }); }); })();