[Userscript]: Double-Check (Version 2.x)

I don’t believe so. unless uBlock is doing that but doubt it. I did update chrome recently I wonder if the updating processed cleared cache or something, do you know if there is a way I could monitor indexeddb see what is modifying/clearing it?

If this could be on any help, I did update Chrome recently and no settings were cleared.

Not that I’m aware of. But I’d suggest at least trying to disable uBlock just long enough to restart the browser and go back to WK to see if the settings are retained.

Also, you could try manually looking at the contents of indexeddb to see if the browser is having trouble reading it. That’s not usually a problem on Chrome, but it’s worth a try. Open the dev tools (press F12), go to the Application tab, and expand Storage->IndexedDB->wkof.file_cache->files. The double-check settings are in wkof.settings.doublecheck.

Thanks for the help, It just reset again, I did my reviews 5hours ago and launched them right now to see and it’s already been reset again to default settings, did not even close the navigator this is really weird.

I wonder if it’s related to the new “page unloading” feature in chrome that unload tabs from memory to free up ram or something, I’m also wondering if that same bug is not what erased all my progress in the addon " Wanikani Heatmap " a few days ago, I don’t have a lot of extensions and only tampermonkey has access to wk, my uBlock was actually already disabled on wanikani so I don’t know what else I can do.

Have you looked at the Javascript console for errors? (press F12, click the Console tab, post any errors) I’m wondering if it’s having problems loading the settings. :thinking:

1 Like

Gotcha, no error in particular right now but my settings have not been reset, I’m gonna check the next time I’m loading the review page maybe sometime tomorrow see if it reset again or throw errors.

edit 48h later: well it’s been two days and the setting are still been kept right now but I’m monitoring the console every time I’m launching the reviews I’ll come post back if it reset again.

Hello, I have a problem that Double-Check is not working for me.
Can someone pls help me.

  1. Tampermonkey is activated
  2. Wanikani Open Framework is on place number 1.
  3. And the scripts that I using beside Double-Check are all working
    Show Number of Learned Kanji, Vocab
    WankiKani Pitch Info
    Wanikani: Progress Percentages
    WaniKani Dashboard SRS and Leech Breakdown
    WaniKani SRS Grid
  4. I also disabled my adblock
  5. I am using Firefox. (I tested it on chrome and is also doesn’t work for me)



Could you open the Javascript Console (press F12 and click on the Console tab) and post any errors you see there?

These are the errors in the console tab, when I click on quiz and then press
German
F12


English

oh, I see. I think you are on the Lessons quiz page, not the Reviews quiz page… Is that right?

Double-Check only runs on Reviews and Extra Study. It doesn’t run on Lessons.

It is working now. The problem was, that in Tampermonkey the sync was activated and always deleted Double-Check. That’s why it was not working for the reviews.

1 Like

Heyo, popping in to inform you that I found a… logic error? I suppose.

I was trying to adapt Hubbit’s wonderful Review Summary script to have a special section for passed items that I used Double Check’s undo feature on. To this end I needed to listen for the didUnanswerQuestion event Double Check dispatches. However, I found that this event was being fired for every single item I reviewed, regardless of if I used undo.

It turns out that next_item calling set_answer_state with reset:true fires the event because there’s no check in that block to determine if the reset is because of undo or because we are going to the next item. I tried to see if I could fix this without adding any new variables, but sadly state is always 'second_submit' and final_submit is undefined for both these cases. So I added another property to the object passed to set_answer_state in next_item – e.g. going_next: true – and then a simple check in front of the dispatch: if (!results.going_next) ...

And that’s that… Happy Holidays!

Thanks! I’ll check over your solution to make sure there aren’t any implications for others scripts (and one in particular), and implement it (or something similar) if it seems okay.

1 Like

First of all, thank you for making this crucial script for my WaniKani experience. While I understand the logic behind WK’s strict behaviour when checking answers, used responsibly this script reduces frustration a lot!

However, I’ve noticed what I think it’s a bug, and after trying deactivating my various scripts, it seems that it is caused by Double-Check: when typing a note for an item, I can’t add in neither the plus (+) and minus (-) signs. All the other special characters can be added with problems (_*;=%&/ etc.). As a workaround, I copy-paste the plus or minus symbol from notepad, but it’s quite annoying.

If you need any more details, just ask me whatever you could need.

1 Like

Thanks for the bug report! It will be a while before I get some time, but I’ll get it fixed.

1 Like

Thank you for your hard work! By the way, I just remembered that this bug also happens when trying to add synonyms to items.

1 Like

Hello! I’m a new user, and this script is exactly what I’ve been needing! Thank you so much for making this and for continuing to diligently debug it! I appreciate it!

1 Like

Hello ! I am using the version 3.1.12. Since today, when I do my reviews, I don’t see the green message ( arrow up “apprentice” for instance ) if I get two answers correct for an item.

3 Likes

This likely has to do with the recent issue where the SRS change animation stopped working. I’m guessing whatever they did to fix it has some kind of conflict with what Double-check does. I’m not sure what that would be yet.

Edit: seems to only be happening for Kanji and Vocabulary, it just worked on a radical for me, so the issue has to do with the reviews that require reading and meaning to be complete. The order of events is a little weird. didChangeSRS is first, then nothing happens until you press enter again at which point didCompleteSubject fires followed by another didChangeSRS (I was only listening for these two).

3 Likes

Yeah, SRS pop-ups just stopped working for me

2 Likes