[Userscript] Anki Mode

I have decided to take over maintenance of this script since the original creator/maintainer have said they wont be updating it. If you have any suggestions for features or experience any bugs please let me know. :grin:

//Credits
Original script by oregu. original
Then maintained by Mempo. second version

How to Install
Install Wanikani Open Framework - Required for this script
Install “Anki Mode” - this script

Optional
The original script did not work with double-check. This version supports it.
[ Install “Double-Check” ]

This version now uses Wanikani Open Framework in order to have a menu system to change hotkey’s and settings.

The default behavior is :

  • press SPACE to reveal answer

  • press 1 to mark as correct

  • press 2 to mark as incorrect


Changelog
2.1.0 - Added a next button after the answer is marked correct/incorrect.

2.0.2 - Fixed a bug that was allowing the correct answer hot key to be triggered before the answer was shown.

2.0.1 - Added new input capture box for hotkeys and added a show answer hotkey option in the settings.


Capture

3 Likes

great!

Also, is it possible to add more keys for correct, incorrect and answer?

I would like to add for example, 7 and 8 (for correct and incorrect) and 0 (for show answer) on keypad for the days I have pain in my left hand after a long day’s work :smiley:

Sure, I can add multiple hotkeys. I will also add another hotkey option for show answer as well.

2 Likes

I have added a new type of input box to capture the desired hotkey. In order to do this I had to change the way I was looking at which key was pressed. If the hotkeys stop working on your first run of 2.0.1 please just rebind your hotkeys and it should continue to work from that point on. I have also added the hotkey option for show answer. Please let me know what you think of the new way to add hotkeys.

2 Likes

Hi, great script so far, I enjoy using it everyday! It helps speeding my review sessions a lot.

But I realized that some kanji when I type spacebar to show the answer it doesnt show all the possible readings for it, here for example けん should appear alongside み right?

or is the api from WK doesnt allow it? It would be very odd, because even in those vocab examples below we can see 見物

1 Like

I believe they only allow me to submit one reading. Does it let you manually type けん and have it be marked correct? I believe most of the kanji items test the most “common reading” that wanikani has selected. I already have 見 burned so I couldn’t test it with that one but I tried it with others and it wouldn’t let me use the other reading. For that kanji it looks like they are testing for the kun reading and some of the vocab is reinforcing the on reading. If you play around with it and find evidence to the contrary let me know.

Some kanji do allow multiple readings to be submitted but I believe you have to choose one of them to submit not both. I usually just grab the first reading in that case. I could try to add a way to show all the readings if you think that would be helpful. Im not sure how to handle the readings if its not one they are testing for in that particular case though.

1 Like

showing multiple readings when typing space bar would be great!!!

since in anki mode I answer it in my mind, I was always saying けん and then it was み appearing.

Thanks so much for updating the script.

When I press “2/don’t know” the answer bar turns red with random hiragana/xxxxx etc and then I can’t continue until I press “know”

Also, the words that I put “2/don’t know” keeps showing up afterwards.

What is the normal process for this script?

Thanks a lot!

The typical flow is clicking show answer and then either ‘I Know’ or ‘I Don’t Know’. This will mark it correct or incorrect. After its been marked incorrect or correct I then hit the same hotkey I marked the answer as to move forward to the next answer. I can see how it would be confusing based on how the ui looks after marking the answer.

Next update I may just hide the answer buttons after the answer has been marked correct or incorrect. In its place I will just have a next button.

As far as this issue goes, could you please upload a gif of you answering the question so I can attempt to replicate this bug.

Thank you for your reply. I’m sorry, I don’t know how to make a GIF on my computer.

I just tested the word “suppress”

1)I hit space bar to show answer—>got answer “yoku” for pronunciation

2)pressed “2/don’t know”

  1. got “ばつっっっ” in answer bar in red

  2. pressed “enter” and “2/don’t know” (different attempts)

  3. It tested me the word “suppress” again with the answer bar being blank and the option of “show answer”

so it becomes a cycle of the process of the same word unless I put “know”

hmm which browser are you using?

Also, could you screenshot the list of scripts you are using for wanikani as well.

Chrome

Sorry, could you take it from the reviews page otherwise any review-related scripts won’t show in the list.