[Userscript] Summary Page: Revival

→ → → → Install Here ← ← ← ←

Requires script extension such as Tampermonkey

This is a script to replace the review summary page. It currently has the features of the original (session accuracy, items divided into SRS up or down, item hover with details and SRS change, item burn indicators), as well as a couple of additional things (such as seeing incorrectly entered answers, or a session accuracy graph which shows an average of how well you did throughout the review session).

It works in light mode or in dark mode with Breeze Dark 2, although the light mode needs improving.

Please let me know of any bugs you find and I’ll try to fix them asap!

Version History

  • 0.3 - Initial release
  • 0.3.1 - More icons
  • 0.3.5 - Fixes, item burn badges, item correct percentage, styling improvements
  • 0.3.6 - Perfect session message
  • 0.3.7 - Warning badges for items with lots of mistakes
  • 0.4.0 - Show what was entered for incorrect items, graph styling improvements
  • 0.4.2 - Small improvements, Esc and keys to return to dashboard
  • 0.5.0 - Accuracy history graph
  • 0.5.7 - Fix for WK icon changes

:warning: This is a third-party script/app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.

36 Likes

Is there any way to see the Summary Page after accidentally returned to the Dashboard? Before the UI revamp, Reviews is always clickable and Summary Page can then be seen, from the total of past 24 hours (?), not sure.

3 Likes

Hmm, I’ll give that a think but it might be a bit difficult because of how I’m currently storing the data. How did you accidentally return to the dashboard, did the script fail to show the summary at the end of the review session or when pressing the home button?

The script didn’t fail, but I entered too many. Also with poor internet connection.

2 Likes

Okay, I’ll have a look over the weekend to see what I can do about persisting the data.
Also sorry, what do you mean about you “entered too many”? Do you mean that you completed a lot of items in one session and the summary script broke or something?

1 Like

Just pressed Enter too many times, sorry. About 30 items.

2 Likes

The older review summary script already has this feature, I think by using localstorage and then deleting that when you start a new review session, so you could always look at the code and do something similar.

4 Likes

The check icon next to “Review Summary” is in a weird place for me. The whole UI just barely does not cover all of the review screen, leaving a little of the item showing at the top. I’d appreciate some more padding between the percentages (and item count) and their subheadings.

It works fine with finishing the queue.

Hmm some very weird styling issues going on there for sure. What browser are you using? I’ll take a look first thing tomorrow morning

Firefox 116.0.3 on Windows 10. 2560x1440 screen (although I do use Tree Style Tabs so the viewport (I think this is the correct term?) doesn’t span the whole horizontal width of the screen).

1 Like

So I’ve installed it in Firefox nightly on my Google Pixel 7 and when I ended the session by clicking the home button I just went straight to the home screen.


^This is the version I have installed, I’m pretty sure it’s the right one but it has the same name as the other summary page script which I think is the one I deleted:p

It sounds like most likely Firefox might be causing some issues - I’ll take a look tomorrow morning. Your script setup looks like it should be working so it’s almost certainly the browser’s fault! I don’t use Firefox so completely forgot to test it there :sweat_smile:

1 Like

Thank you very much for your script, it looks great!

Firefox user here, after most review sessions the summary page displays less than one second and brings me directly to a buggy vanilla dashboard. I will post a screenshot next time.

For some reason, this bug did not occurred after my morning long review session. It was so nice to see the dashboard back.

1 Like

Unfortunately I’m having trouble replicating your issue (even using Firefox).

Could you please check the dev console (F12 key or right click + Inspect, then go to the “Console” tab) and check that it’s showing items as you complete them, something like this:
image
And also that when you press the home button / get to the end of a review session it shows an array:
image
And do you mean the Dashboard itself is buggy? This script will only run on the review session page so if so that suggests that your issues are coming from some other script or extension.

EDIT: I may have an idea of the cause now but won’t be able to test it until I have reviews on my test account in a few hours, if you do have a chance though it would still be great if you could check what I mentioned here

It’s so nice to see someone try their hand at this! I’ll give it a go.

2 Likes

I’m having trouble replicating your styling issues… What styles are you using, is that the old Breeze Dark? Or Breeze Dark 2? Do you have any others you’re using? Also, do you have your tab zoomed in or out?

Could you please open dev tools by right click → “inspect” on the background of the dashboard, then make sure “summary-popup” is selected:
image
And then send me a screenshot of the styles which should look something like this:

I have done three review sessions with the script so far, and for all three it briefly shows the summary afterwards, and then immediately goes to the home screen with an error message, and a missing review forecast section for some reason:

Stopping the session early using wrap up does not cause this issue and correctly displays the summary.
I think it might be an interaction with one of the other scripts I have installed, but it is hard to test because after finishing a review session I have no reviews left to test with.

On an unrelated note, the summary is still missing the actual correctness percentage (number of correct items/ number of items), and a breakdown of items per srs stage. Are there any plans to add those later?
Seeing a list of newly burned items at the end of a review session always worked motivatingly for me.

3 Likes

That error message is very helpful, thank you. I think I have an idea of what the issue might be now, I’ll take a look. Unfortunately I’ve got a few hundred reviews and so can’t get to the end of them to test it, so I’ve created a test WK account - but it’ll take a few hours to give me reviews.
If you get some more reviews in the next couple of hours you could test something for me […]

EDIT: Nope, that doesn’t solve it

Thank you for your reply, I will check what you suggest during my next review session.

My issue is perfectly well described in @gijsc1 post here (the buggy dashbord is visible on the provided screenshot, with missing “Review Forecast” panel on the right-hand side and all dashboard scripts deactivated (Heatmap and so on) until I press F5 to reload the page).

1 Like

image

1 Like