[Userscript]: Double-Check Workaround

It doesn’t work for me on firefox 111.0.1.

Generally speaking if I submit an answer, it simply moves right on to the next item, regardless of whether I got the answer right or wrong. Occasionally I can choose to undo if it’s wrong, but maybe only 10% of the time. Generally the items just keep appearing over and over until I type the right answer.
Also because it moves straight onto the next item, it doesn’t show the level up or level down (or whatever) indicator, so I don’t know whether it’s actually registering that I got it wrong on the previous attempts, or whether it only records the last, correct answer I gave… if that makes sense.

Dev console output:

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1087
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1087
    pickResult resource:///modules/UrlbarInput.sys.mjs:1034
    pickElement resource:///modules/UrlbarInput.sys.mjs:801
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:595
    handleCommand resource:///modules/UrlbarInput.sys.mjs:542
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:338
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3496
    replayDeferredEvents resource:///modules/UrlbarEventBufferer.sys.mjs:219
    onQueryResults resource:///modules/UrlbarEventBufferer.sys.mjs:117
UrlbarInput.sys.mjs:2706:15
    _loadURL resource:///modules/UrlbarInput.sys.mjs:2706
    pickResult resource:///modules/UrlbarInput.sys.mjs:1183
    pickElement resource:///modules/UrlbarInput.sys.mjs:801
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:595
    handleCommand resource:///modules/UrlbarInput.sys.mjs:542
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:338
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3496
    replayDeferredEvents resource:///modules/UrlbarEventBufferer.sys.mjs:219
    onQueryResults resource:///modules/UrlbarEventBufferer.sys.mjs:117
Could not record event:  TypeError: queryContext.results[0] is undefined
    _internalRecord resource:///modules/UrlbarController.sys.mjs:1021
    record resource:///modules/UrlbarController.sys.mjs:852
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:677
    handleCommand resource:///modules/UrlbarInput.sys.mjs:542
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:338
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3496
    replayDeferredEvents resource:///modules/UrlbarEventBufferer.sys.mjs:219
    _deferringTimeout resource:///modules/UrlbarEventBufferer.sys.mjs:188
    notify resource://gre/modules/Timer.sys.mjs:49
UrlbarController.sys.mjs:854:15
Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1087
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1087
    pickResult resource:///modules/UrlbarInput.sys.mjs:1034
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:721

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1087
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1087
    pickResult resource:///modules/UrlbarInput.sys.mjs:1034
    pickElement resource:///modules/UrlbarInput.sys.mjs:801
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:595
    handleCommand resource:///modules/UrlbarInput.sys.mjs:542
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:338
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3496
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3495
    handleEvent resource:///modules/UrlbarInput.sys.mjs:506

AbortError: Actor 'Conduits' destroyed before query 'RuntimeMessage' was resolved ConduitsParent.jsm:375
Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1087
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1087
    pickResult resource:///modules/UrlbarInput.sys.mjs:1034
    pickElement resource:///modules/UrlbarInput.sys.mjs:801
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:595
    handleCommand resource:///modules/UrlbarInput.sys.mjs:542
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:338
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3496
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3495
    handleEvent resource:///modules/UrlbarInput.sys.mjs:506

Just for the record. Works for me on Windows Chrome in addition to reorder omega.

This sounds a bit like you might have lightning mode enabled, which I didn’t test at all. That’s certainly the next area I would work on, though, if I spent more time on the script, but I probably won’t do it today because I have to take care of my real job and other IRL responsibilities today (and supposedly the fix for the original Double-Check is just around the corner). But I’ll update the main post in the topic to mention that lightning mode may not be working (and if you confirm you had it turned on I’ll speak more definitively), and if we don’t get a fix for the original script today I’ll work on getting it working in mine tomorrow.

If Show Info is opened, then press Undo. Show Info doesn’t get collapsed.

I suddenly feel like I took a time machine and went back 30 years :unamused:
Web programming meant:
if browser == netscape
if version == c

elif browser == IE
if version == y

Now:
Windows Chrome in addition to reorder omega.
Sort of: A lot of connection problems. Zero reviews appear as NaN (Not a number)
Windows Opera in addition to reorder omega.
Nearly like before: NO connection problems, Zero reviews appear as 0.
Then one small wish PLEASE! This shouldn’t conflict with your 10 commandments :sweat_smile:
Change the “F” for meaning:
After the closed reading:
Open kanji components.
Open/Closed context. I really dont care.

This is for Wanikani. I sent this link to info@wanikani.com

Thank you so much for this!

Since I installed it, it no longer shows a green/red Apprentice, guru etc. if I get a question wrong or right. It just goes straight to the next answer. Have tried with both lightning mode on and off.

2 Likes

I added this to the known issue list at the top. Thanks!

I added this to the known issues section.

Seconding this.

Also, when I’m undoing an answer, the textbox loses its focus, forcing me to use the mouse again to continue typing.

2 Likes

Just released version 0.4.0, which has the following features:

  • Lightning mode button is there again. It doesn’t look great but you can turn it on and off yourself… you just have to refresh the page afterward.
  • Item info container and button work better, and are properly disabled when they should be
  • Retry button should also be styled correctly now.
  • Textbox focus should work a little better now.
4 Likes

I just got this message and hitting enter after writing my answer no longer advanced the reviews (and the answer didn’t register as right or wrong either, I tried with both gibberish and the correct answer):

Disabling this script removed the problem :upside_down_face:

Also: it worked prior to the update.

Thank you so much for your work on this script! I can now finally use my main PC again to do my reviews. Much appreciated.

2 Likes

Prior to which update? If you mean the update of this script, you can install a different version through GreasyFork by clicking “History” then the version you want to install.

Can you provide me more information? If you open up the browser console you might have an error message you can provide. What browser are you using? Which version of the script are you running?

1 Like

If the main script isn’t fixed by tomorrow, I will work on “SRS level is not displayed when an answer is submitted.” I already did a lot of investigation, so I’m pretty sure I know how to get it to work, but it’s a bit tedious to actually implement. After that I might have time for “Some text validation between readings/meanings/kana/non-kana won’t work 100% of the time, but it doesn’t stop other things from working as expected.”

2 Likes

I meant the update to this script, which worked a couple hours before you posted about the latest update but not after. I’m using Chrome on a Chromebook. Turns out the script hadn’t updated automatically on my end yet tho, so it was 0.3.0 still. Currently 0.4.0 seems to be working fine, but I’m only able to test it on recent lessons/mistakes.

1 Like

It seems like it’s been updated already but if you lose focus of the text box, clicking enter again refocuses it.

SRS notifications should now work. I tested several cases, and they all seemed to work for me, but it is a bit of a finicky area so I may have missed some edge cases. As always, please let me know of any issues you run into.

And now burn warns should work too.

Doesn’t work. I’m able to mark the answer as correct after getting it wrong, but then the same question comes back again later in the lesson.