[Userscript] Anki Mode

@Casinocas Are you planning on creating a pull request for this in github (GitHub - JDurman/WaniKani-Anki-Mode · GitHub).

As others have mentioned if @JDurman is not around I could probably take up the maintenance of this script for now.

That would be a great idea!
I’m not sure if you really need to wait for permission to create a fork, I already pinged the current maintainer 2 months ago and he never replied. If he does show up again, you could always ‘‘transfer’’ the ‘‘rights’’ back to him if he requests so…
Honestly, I think Anki Mode is the most important userscript of all.
So, thanks in advance if you decide to maintain the script at least for now

Hi there. That would be great! This was just a quick fix to get it going again.

Thank you so much!

FYI Wanilog supports Anki mode / flashcard reviews: https://wanilog.com

Great! Its been a busy weekend but will look to fork and create everything in the next couple of days. Thanks!!

Got around to creating the new greasyfork/github

Added a couple of minor fixes + features (listed below)

Please let me know if there are any issues! I did some testing myself but haven’t had as much studying time this week - so theres def a chance I could have missed something.

New feature

  • Click-to-type in lesson quizzes. Click the answer box to type an answer yourself and press Enter as usual. You stay in typing mode from item to item until you click out, which brings back the Anki look. Reviews are unchanged.

Fixes

  • Back-to-back sessions without refreshing. Hotkeys and the Anki buttons used to stop working when you started another review or lesson session without refreshing. Now the script sets itself up again on each new quiz.
  • Hotkeys working only “sometimes”. The script now waits for the quiz to finish loading instead of giving up. The hotkeys also keep working when WaniKani puts the cursor in its answer box.
  • Dead arrow keys on lesson slides. After a lesson quiz, the Anki hotkeys could block the left/right keys on the lesson slides until you refreshed. Casinocas’s version introduced this, and it’s fixed now.
  • Anki mode turning itself on. An old saved setting holding the text “false” counted as “on”. It’s now read correctly.
  • A small fix to Casinocas’s version itself. In the first commit, one place where the script sets up its answer-box handling could set it up twice. It now can’t.

Notes about Fork setup (no code changes)

  • A README explaining the fork, where to find the original code, and the credits.
  • JDurman/Casinocas are credited.
  • The Greasy Fork listing, with automatic updates from GitHub.

Looks like the new script isn’t working again. Anyone else have the same issue or is it just me?

Taking a look - its not working for me either now.

Edit 1 - Userscripts broken again? seems like all userscripts are broken

Yup all scripts are broken with the latest api changes from what I can tell.

Alrighty - Made some updates to the script. WaniKani OpenFramework is still broken, so this is only a script to fix AnkiMode. If you use multiple scripts the others will still be broken (at least I’m pretty sure - maybe my fix unintentionally somehow helps all the other scripts).

updated script can be found here: Wanikani Anki Mode

Works now, thank you.