IMPORTANT NOTICE
as of 2023-04-26T10:00:00Z WaniKani has announced it has disabled the Get All Reviews endpoint due to issues with undue load on the servers interfering with normal WaniKani operations (lessons/reviews). This means that the Review Summary script, which displays an overview of recently done reviews, cannot retrieve anything new past this timepoint and will display only the most recent review session before 2023-04-26T10:00:00Z until further notice (effectively making this script obsolete).
Version 0.4 should be working again thanks to the relentless efforts of the amazing KumireiTM on her Review Cache script. END IMPORTANT NOTICE
Disclaimer:
written as a stopgap until WaniKani reimplements a native review summary.
Is it pretty? no
Is the code pretty? Heeeelll no
I copiously copied from the heatmap popper (thanks Kumirei!) and from other parts of WaniKani and from StackExchange, etc, so itâs a real carnival inside - and it probably wonât display that well on all platforms/browsers. This was a function over form kinda thing. Hopefully I can make some improvements over time, but really hopefully WK will return the summaries natively and this can go in the trash.
Basic info
Upon first load, the script will not be aware of recent reviews and will simply retrieve everything from the last 24 hours. After that, every visit to the dashboard will check for new reviews and display those if available. If not available, will display the prior result.
The chevron (^) can be used to show/hide the result percentage for those that donât want their most recent result staring them in the face on the dashboard. Click the result percentage to open the summary.
Summary window
Click the percentage result to open the summary window
upon installing and reloading the WK homepage, it displays the accuracy, but when i click on the accuracy to see details, it doesnât show me any items:
If you hit F12, are there any error messages in the console?
I installed Firefox, but Iâm on Windows and it looks like the items display for me - but the behaviour in the screenshot would be what I expect if the script encountered an error during the populating of the window with the items.
edit: there may or may not be a slight issue with displaying the radicals that are images - I didnât have any of these in the reviews I tested with (silly me). Fixing now - hang on
edit2: verison 0.2 is out. Let me know if you still have issues
lol I was wondering if the window would fit 10 side by side if there was a lot of vocab - obviously not.
If I have some time this weekend I might work on the display side of things a little. It is quite horrendous.
Definitely a good idea, and not hard to implement. Right now itâs 10 items per row, so semi-countable. If I go for a clean up round, it probably wonât be exactly 10 per row, so these numbers would come in handy.
I spotted another bug. I just finished my morning review session (112 reviewed items) but only 44 items are being shown in my review summary. (I use Firefox v. 111.0.1 + script v. 0.2)
You donât happen to have multiple tabs open with WaniKani? I can explain the Firefox 107 behaviour - you likely installed the script fresh, in which case it loads reviews from the last 24 hours. Otherwise it loads reviews since your last visit to the dashboard, which can give surprising results if there are multiple windows open.
The update got rid of the concept of a session. This means there are no more session timeouts (something people complained about frequently) as well as issues with open sessions and burden on the server to cope with expiring sessions.
Without sessions there is no more natural grouping of reviews. The summary page used to display all reviews in a session, but now itâs tough to determine what should be displayed on any summary page.
The heatmap displays everything based on time (with a day end that can be configured in the settings, by default 12 midnight), but canât break up the reviews done on separate times of day.
The Review Summary script displays everything since the last visit to the dashboard, which can theoretically break up single reviewing efforts if the dashboard is refreshed in a separate window.
Unfortunately âin one goâ is a concept that can no longer be retrieved from the server. Because a freshly loaded script does display all the items, itâs not likely there is a problem with the item display itself. You can probably get more items to display in Firefox 111 as well by having it load the last 24 hours (which you can trigger by opening the script and putting a different number in the cache version constant).
What I can do is make the cache clearable in the settings - that way you can reset to a âlast 24 hour viewâ if the script doesnât display everything you want, although itâs at the risk of displaying too much. Iâm curious to see what direction WK is going with any native summary page. It should likely be a scrollable history of some sort - which is giving me some ideas for this script (like a cache with a longer memory). Iâll see what I can do, as the layout is also still jarring me.
Thank you for your feedback. Yes I probably had several wanikani tabs opened at the same time. I just completed a review session with only one opened tab and the review summary was working fine Thank you for the tip
Thanks but doing my reviews using a single tab to avoid problem is not an issue, this script is well enough to me Thank you again!