[Userscript] Wanikani Heatmap

Yes, it seems related to WaniKani SRS Grid v5.3.

@DaisukeJigen You script has a CSS rule for .title. Could you perhaps scope this to .srs-progress?

I’ll take a look Monday.

There isn’t even a title class inside the SRS Grid anywhere. Either WK changed their code, or I had something in there that I removed at some point. Either way, just took the .title part out.

Thanks! :pray:t2:

Thanks, the issue addressed, ‘reviews’ appears centered:

Hi. Been using this on and off (I just switch it on when I’m curious, but don’t want all that data there all the time).
I’ve noticed that some of the squares seem to have “drifted”, specifically the ones with a border (Level up days, and today). :worried:

screenshot-www.wanikani.com-2020.10.19-23_15_29

Haha, what! What did you do! Ok, so what browser are you on?

Chrome (Version 86.0.4240.75, if that helps…)

I have a ton of scripts, so maybe it’s a conflict…?

Solved!

It looks like this :arrow_down: script was causing problems. It actually seems really buggy.

It’s probably a too broad CSS rule for the class marked. If you want to keep the other script you can probably just narrow the scope of that rule

Wouldn’t know how. I just deleted it. Not sure it really works anyway.

:+1:t3:

Hi, I really like to look at my heatmap every day, but from a few days ago this error kept happening and I can’t see the heatmap anymore. Is there are problem with conflicting userscripts?

Here’s the bug:

Here’s my Tampermonkey dashboard:

hi,
it seems the style sheet (CSS) is corrupted.
Do you have enough available RAM and diskspace?

Do you have an extension which modifies the visual themes of websites? Such as stylus? Try disabling such theme extension, and reload WK’s dashboard page.

If problem remains, disable Tampermonkey via the main switch in its drop-down menu.
If the dashboard is drawn correctly, try reenabling your TamperMonkey scripts one after the other, starting with the Open Framework. Reload the page each time, and identify which script is causing the trouble.

Okay. I think it resolved itself because when I reloaded WK the script worked as before. Still, if the same error occurs again I’ll know how to troubleshoot it! Thanks!

Is it intentional to make the pop-up not appear when clicking today’s box when no reviews have been done yet? Clicking the previous days and the days with upcoming reviews makes the pop-up appear as expected.

image

Here's photo of console if that's of interest

I think that my reasoning was that it would be confusing if it sometimes* displayed the forecast and sometimes the reviews done, so instead I made it only display the reviews done for the current day. That of course means nothing is displayed when you have done nothing.

*Sometimes as in display the forecast until something is done and then display what’s been done. I think this would just register to the common user as a random pattern

I think you could probably just display the reviews done in all cases, but having it be 0 until anything’s done. It would most likely take away some confusion, since people might assume it’s a bug if a popup doesn’t come up.

But nothing happens when you click on past days without reviews either?

It doesn’t? I’ve never actually noticed, I haven’t clicked on days with no reviews yet. Although I think the current day might be a bit of an outlier from the others, as it still shows up with a non-zero color on the heatmap, which serves as a visual indication that something would happen if you click it.

This is a good point. Perhaps I should have it display the forecast after all…
I’m not going to make it pop for days without reviews, though. I don’t see any reason to draw the user’s attention with a pop-up containing zero information