I have published an update. I had to basically spoof the answer form and hide the WaniKani one. I have tested it some and it appears to be working for me. I have turned it off for now by default although to allow for several days of testing before I turn it on by default. You can go to the experimental tab in the settings to turn it on. Let me know how it works for you.
So, just tried. Not working fine
as soon as the item appears it shows already the answer without me needing to type spacebar first
Hmm. This isnāt occurring for me. What keybinds are you using? Have you also tried refreshing the page after enabling the feature?
the usual: 1 for right, 2 for wrong and space bar to show answer first.
but as soon as the review starts the answer is already there.
I just pushed a fix. Please let me know if it solves your issue.
Is it possible to enable anki mode only for Meanings, but still require Readings to be typed? Also, seems Enter doesnāt work as a hotkey ā not sure whether this is intentional.
almost there!
when I go to next item, it keeps previous answer, is there a way to clear it when new item appears?
Based on your UI it looks like you are still on 2.2.0. Could you confirm that you have 2.2.1 installed? Also, I actually forgot to test it with lightning mode. That could be whatās causing the issue. I will take a look after work tonight.
Is it possible to enable anki mode only for Meanings, but still require Readings to be typed?
Yeah, itās possible. I could try adding it as an experimental feature to see how it would flow with what we currently have.
Also, seems Enter doesnāt work as a hotkey ā not sure whether this is intentional.
Yes, enter cannot be used as it would conflict with other default WaniKani behavior.
Thatād be great. Iāve always avoided anki mode since I feel like typing helps my retention for readings. But lately Iāve been interested in seeing whether itād be useful for Meanings, especially in longer review sessions.
I admittedly donāt fully understand what Iām doing lolā¦but I tried changing this:
//Start ankimode events
settings.ankimode_enabled ? ankimode_start() : ankimode_stop();
ā¦to this
//Start ankimode events
$.jStorage.listenKeyChange('currentItem', readingOrMeaning);
function readingOrMeaning() {
var qType = $.jStorage.get("questionType");
if (qType === "reading") {
ankimode_stop();
}
if (qType === "meaning") {
ankimode_start();
}
}
It seems to be working as Iād hoped. The only strange behavior Iāve noticed is that the first card in the batch displays all the anki buttons
(reversed the order of Donāt Know ā Know to match my hotkeys)
Okay, I fixed one bug that was occuring during all reviews with the new feature and also fixed several that were happening with the lighting mode from double check. Please update and try again. Crossing my fingers
I donāt think it will mess up any submitted answers or anything but it may result in some weird behavior. I will try to get a experimental feature out for you to play with. Ideally I would keep in in anki mode but just allow you to type when that option is selected in the settings. I donāt see it taking long to implement. Hopefully tonight or tomorrow depending on my workload.
working great!
thank you so much
I have added support for this feature in update 2.2.3. I just released the update so please play around with it and let me know if itās what you had in mind. To turn it on just go to the experimental features tab in the anki mode script settings. Thanks for the suggestion.
Since I use [KāDonāt Know] ā [LāKnow], I still reversed the button positions to match my hotkeys. Not that important, just a visual preference to avoid confusion. Did a couple small review batches with the update though and itās working great ā thanks!
Awesome. Glad you like it. Let me know if you run into any issues. After enough use and testing ill move it to just an options tab. Iāll also add an option to reverse the button orders for you too. That way you donāt have to go in an add it every script update.
I just pushed version 2.2.4. You should be able to reverse the button order now from the option tab of the anki mode script settings.
2.2.4 working well. Appreciate it
Thank you for this script.