[UserScript] WaniKani Stats

Introducing WaniKani Stats (beta).
Adds a “Stats” button to main menu, which replaces the dashboard with some stats. Clicking that button again, brings back the normal dashboard.




WaniKani Stats

7 Likes

Thank you so much for creating this!

I’ve just installed the script and added my API key, however I seem to be getting your stats:

Just thought I’d let you know in case it was a bug. Or, it could just be me! That does tend to happen …

3 Likes

Haha! Same, feels illicit

2 Likes

Whoops, looks like I left my read only key hard coded in there from early testing.
For whatever reason when I take that out, the whole main area fails to load. I’ll have to look into this more in a bit.

2 Likes

Just updated to version 0.3
Still needs some visual tweaking and performance enhancements, but it should at least work correctly now. :crossed_fingers:

1 Like

I just tried updating but unfortunately I’ve still run into the same issue. I tried updating, uninstalling completely, reinstalling, turning the script off and on again, etc.

I had a quick look at the code and it looks like your API key may still be in there (line 11289). After I hardcoded my own API key into the script, saved and refreshed, my stats appeared! So hopefully an easy fix for you. My backend skills are rusty af and it’s late so I may attempt a proper fix tomorrow if you don’t get a chance to look at it.

1 Like

Dagnabit, I did it again. When page wasn’t loading, I put my key back in, to see if pulling key from the store was somehow related, and never switched it back.

Just pushed v0.4

4 Likes

Hahaha it’s all good, v0.4 is working perfectly!

Thank you again for writing this script and for patching the bug :smiling_face:

3 Likes