So it was brought to my attention that [UserScript] WaniKani Fast Abridged Wrong/Multiple Answer was busted. A big part of that being stupid turbo events. I did not realize these were a thing here now, and what a pain they are to code around.
But anyways, while that script got a fair bit of love (at least according to greasyforks installs count), I decided its time to throw it out, and replace it with something new.
So here we go. WaniKani Reviews Plus
Like before, pops up the correct answer(s) for both reading and meaning, with all the same options (I think)
New stuff: For kanji readings it will display primary readings as the top line, and secondary readings on a second line, and slightly smaller font. (No option yet to only show primary, but its on my radar)
There is also an option to show next to the question a breakdown on kanji making up the vocab, or radicals making up the kanji.
And for those that arenât afraid of trying out early and unpolished features, a review summary. After the reviews are done, youâll see an overall list of corrects/incorrects. You can even have this at the bottom while doing reviews, to see a âlive tallyâ. This is still early and ugly, so Iâve marked it experimental in the options, but its there if you want. I didnât want to hold up the release of the script for this, but also didnât want to hide it away completely.
10/07/24: Fixed a bug where on normal reviews everything was labelled incorrect. Normal reviews and extra study mark things differently, and I had been developing mostly off extra study, as I didnât have normal reviews a lot.
10/21/24
Added percentages to results screen, as well as the ability to click an item and get more detailed info. Some other small CSS changes as well.
Iâve been meaning to try this out since I find it a bit cumbersome to open the info page, or forget it entirely when doing reviews. Thank you for your hard work!
EDIT:
Maybe because I have a gazillion userscripts, but I found that it breaks the reviews page in a way where the url removes the /subjects/reviews, and instead just displays the dashboard URL, when I go to the reviews:
And these are the scripts affected: (as far as I have seen)
Jitai
Back2Back
Thereâs also a weird behavior wherein I answer correctly, but it doesnât show any info and it jumps to the next review item. When I enter the answer for that next item, I canât somehow input anything.
Iâve hit a similar thing if I refresh while on the reviews. Figured it was just some weird refresh bug that Iâd put low priority. Always worked fine going from dashboard. But I wonder if there is some script interaction going on.
Wonder if it could have something to do with other scripts I have installed. Does take double check into affect. Wonder if not having it is breaking something. Didnât think to test without it. Shouldnât have mattered, but possibly.
Iâll have to play more when I get time after the weekend. Sorry itâs having issues.
Just tested it out with disabling double check, and installed both back2back and jitai. Found a separate issue which is corrected, but couldnât recreating the ones you mentioned. Both those two scripts seemed to work fine as well. Based on the url change, I wonder if one of the other scripts you have going is causing some sort of page refresh
My review comes in 30 mins so I thought Iâd just screenshot first the scripts that are running on the dashboard page. (Later I will screenshot the ones in reviews.)
UPDATE: I think I found what's breaking the script
The only thing is that, it shows the answer immediately if I got something wrong So I donât get the chance to guess it again.
Also, I observed a bit of a bug. When I refresh the reviews page itself (not going back to dashboard â reviews), the script breaks somehow and I need to go back to dashboard then reviews. Thatâs all I could find, other than not working with that script I mentioned above.
Yeah, Iâm not sure what the deal is with refreshing while on the reviews page itself. URL changes for whatever reason, putting it in a weird âreviews and not reviewsâ page. Possibly those awful turbo events, or perhaps how Iâm shoving a Vue app into another pageâs containers. I suspect its probably Vue.
Edit: Yep. ârouter.push(â/â)â is affecting WaniKain as well, not just the Vue app. Now how do I deal with thisâŠ
I appreciate your efforts in maintaining this script. Other userscripts also broke with the turbo thingy, but alas, Iâm not fluent with any coding languages so I couldnât help out. orz
The Double checker has a similar functionality, but it scrolls down to the info page, unlike yours that shows it immediately after a correct/wrong answer. So thereâs a bit of a lag with that feature.
Maybe a feature request for your script wherein it can be configured so the direct info shows up only when correct, or like maybe incorrect answers multiple times? No pressure though. I know thereâs an existing problem at hand haha
You probably donât need to use Vue Router at all. Feel free to build on my version if you would like, a Vue app seems quite over engineered especially if youâre using routing and stores as well
Yeah, using router was indeed overkill. Originally I had planned for different routes for different features. The reviews was to be one page, the results screen at the end another, and then more if I created more stuff. But, it ended up just being one single page with Teleports everywhere.
Problem ended up though, I still need to router.push(â/â) initially.
I went with Vue, since I work in it regularly anyways, Iâm familiar. And its components, computed properties, reactivity, etc just made things easier than going full on vanilla Javascript.
I may even more over engineer things as well. Thinking of adding in PrimeVue as well, to make the results screen fancier and more useful, but also easier on myself.
My SRS Grid and Stats scripts also use Vue, and Stats uses PrimeVue. Over engineer for sure.
Tally is the results screen at the end, tally live puts it at the bottom of the page while doing reviews. Tally will show if you go to dashboard early, or in another tab I suppose, as itâs looking at variable not being empty. It doesnât know how you finished. Just that youâre at the dashboard and this variable holds data. âClosingâ the tally page just clears that variable, which then the tally hides itself since thereâs nothing to show.
Iâm going to borrow (steal) your breakdown for my version if you donât mind. Iâve been thinking of a way to easily link to the kanji/radicals pages because that is one of the main times I open the info and then have to scroll all the way to the bottom. The breakdown would be a perfect place to have those links.
Hello, I got my Macbookâs battery fixed and somehow all three scripts are working nicely with this Reviews Plus script I did observe though that I should only use one browsing tab for my wk dashboard. Any duplicate tabs causes the script to malfunction to that duplicate tab - which I assume should not be the case. Noticeably on the duplicate tab, there are only 23 scripts loading. But, I donât mind that much.
Yeah, thatâs in the works. Math isnât always mathing right at the moment, and also trying to add a bit more styling in at the same time. Should be coming soonish.