[Userscript] WaniKani Workload Graph

Seems like it worked, thanks a lot!

Though, the buttons are still messed up lol, but that’s just a minor issue :slight_smile:

grafik

1 Like

That’s great! I see the messed up buttons. I haven’t been paying attention to heatmap updates. Should be easy enough to fix separately. (I hope)

2 Likes

Ah, I should have let you know I added a couple of info buttons there

2 Likes

Nah, that’s fine. The main problem is that I haven’t done any reviews in a while, and with my installation regularly wiping the local storage (I’ve not figured out why), most of the time the heatmap doesn’t display at all, since there are no reviews cached. It means I miss things that I would normally spot myself.

At least I’ve now shoved the additional button into the actual button div, so it’s a lot cleaner.

2 Likes

HI, I’m new to wanikani and I have the heatmap userscript but when I installed the workload graph plugin there are no button for it at all, I checked everywhere I even saw the pictures above and there wasn’t any buttons not on the heatmap widget nor on the top menu.

this is the error in my console:
Uncaught (in promise) ReferenceError: Unhandled Promise Rejection: $ is not defined
at add_css

are there any prerequisites that I might have missed?

Same issue. Was wondering why the script is not loading and has the same error:

19:13:54.646 ReferenceError: $ is not defined
    add_css moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/ WaniKani Workload Graph.user.js#91:990
    VMzde5u7fi4wr moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/ WaniKani Workload Graph.user.js#91:233
    VMzde5u7fi4wr moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/ WaniKani Workload Graph.user.js#91:1700
    VMzde5u7fi4wr moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/ WaniKani Workload Graph.user.js#91:1701
    rn moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/sandbox/injected-web.js:1
    <anonymous> moz-extension://5ad292bc-17d4-6a4c-a1fb-16d96d6364df/ WaniKani Workload Graph.user.js#91:1

Would be awesome to make it work somehow

So it looks like jQuery is missing. I searched a bit and found:

so it seems that the script should add/use:

wkof.include('Jquery');
wkof.ready('Jquery').then(do_something);

I change the script a bit (moved call to add_css(); to then() block and the rest DOM modifications) and while it removed the error it didn’t make the graph visible.

All in all - is this script working for anyone?

I’m having same issues, is this script working for anyone?

1 Like