I like to cheat myself and would love an option to deactivate the correction (backspace) functionality to prevent this.
Is there already a way (like tampermonkey)?
(nothing seems to be at List of Scripts)
I like to cheat myself and would love an option to deactivate the correction (backspace) functionality to prevent this.
Is there already a way (like tampermonkey)?
(nothing seems to be at List of Scripts)
deactivate âcheat myself buttonâ man, donât touch the site.
but bunny mode, i think, does just what you are asking for. check that out! which iâm not sure but check that out and inform us too!
have a great day, fls mert is out.
Bunny mode will jump to the next question if my answer is correct. But this wonât prevent me from changing my answer if I entered it wrong, right?
Only the backspace functionality or the buttons, too?
Backspace would be enough^^ Itâs most of the time kind of a reflexâŚ
Here ya go. I think this should work.
https://greasyfork.org/en/scripts/396170-bunpro-disable-backspace-undo
Also, did you see the mistake delay script? That one just disables the undo for a short time after answering. Might be enough if itâs just reflex
edit: apparently I did not add that functionality to the mistake delay script
edit2: Btw if you want the buttons gone completely thatâs super easy to do, so if you would prefer that and just tried to be modest I can put it together in a minute
Wow, really cool!! Thanks a lot
I had to create a small fix:
(function() {
var $ = window.jQuery;
$(âhtmlâ)[0].addEventListener(âquiz-pageâ, function() {
$(âbodyâ).keydown((event)=>{
var input_elem = $(â#study-answer-inputâ);
if (event.keyCode == 8 && input_elem.css(âbackground-colorâ) == ârgb(229, 115, 115)â) {
event.stopPropagation();
input_elem.attr(âdisabledâ, ââ);
}
});
});
})();
(the color and $ variable)
Thanks a lottttt <3
I just realized that the textfield is disabled now >.> I canât type anymore
Oh, using global variables work fine for me without defining them. May I ask what browser you are using that it doesnât?
Ahaha oops! I disabled it so you wouldnât delete any text when pressing backspace, but I only tested it on one item so I forgot to enable the textfield again. Iâll fix it, haha
@joda itâs updated now. I changed it to just unfocus the input element. Also defined the jquery variable, since you seemed to need it.
Anyone that wants to remove the button completely can use this:
As I said, much simpler
// ==UserScript==
// @name Bunpro: Remove Undo Button
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description Disables the backspace functionality in reviews
// @author Kumirei
// @include *bunpro.jp/*
// @exclude *community.bunpro.jp*
// @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// @require https://greasyfork.org/scripts/370623-bunpro-helpful-events/code/Bunpro:%20Helpful%20Events.js?version=615700
// @grant none
// ==/UserScript==
(function() {
var $ = window.$;
$('html')[0].addEventListener('quiz-page', ()=>{
$('.oops-button').remove();
});
})();
You will reconsider when you realize that I accidentally disabled not only backspace at first, but also reviews themselves
Well the number of scripts I use on WK made by you more than make up for this.
All hail @Kumi
You look different! Did you get a haircut?
Iâm using chromium + tampermonkey! Tampermonkey has some syntax parser included and told me that the $ variable is unknown^^
@Kumi Its working now^^ Thank you a lot The only thing i needed to change is the color value which is somehow different for me.
Mine is: rgba(255, 77, 77, 0.8)
Ah, yeah the editor says that but itâs not an issue when it runs.
AH!!! I completely forgot that there are themes on BP. Gosh darn it, I will have to update the script again. I wish BP would just change the color with a class instead.
Ok, I think I fixed it. Changed the condition to the R value being above 200.
Hi Kumi, I found one small bug^^ The backspace button keeps disabled, even if I continue to the next item. So if I type something, I canât press backspace anymore (to correct some spelling mistake; havenât pressed submit yet). Is it possible to change this behaviour?