[UserScript] WaniKani Lightning Mode

So if I understand correctly, the problem is the Double Check script and not the Lightning Mode script (this one)? Then this is probably my fault. 2 days ago, @rfindley added a bugfix that I proposed for the Double Check script, but yesterday I realized that my bugfix introduced a new bug in case someone tries to submit an empty answer to a meaning question. I have already sent a bugfix for my bugfix, so it should get fixed soon.

However, I could not reproduce the problem you have described. Lightning Mode still works even with the bug. So if you come across this problem again, could you please check if an error appears in the console (F12) that looks like this:

image

If there is no error “reduce of empty array with no initial value”, then it’s a different bug.

1 Like

@Sinyaven, your fix is live now.

1 Like

@jynsym,
Are you running both the [Lightning Mode] script and the [Double Check] script? If so, uninstall the [Lightning Mode] script and use the version built into [Double Check]. Even if you disable lightning in Double Check, Double Check is still incompatible with the standalone Lightning Mode script.

1 Like

No, I’m only running the double check. I’m afraid it’s still doing it in lightning mode, but I have actually realised it only submits the meaning as wrong, the readings are fine. Sorry @Sinyaven I do not know how to bring up that panel. My mac thinks that f12 is volume up and nothing (alt or ctrl or combination of the two) can make it think otherwise.

Actually did someone update it one minute before I posted that comment above? because it seems to be fixed for me now… and I can see in my tampermonkey it got updated 10m ago

2 Likes

I was discussing the issue of speedy reviews on this thread where Lightning Mode got brought up:

https://community.wanikani.com/t/do-you-aim-for-instant-recognition-or-reinforcing-mnemonic-each-time/44172

And it got me wondering if this “Lightning Mode” (or any other) Script has a timer. As in, you get say ~40 seconds to give an answer and if you don’t get it within that time-frame, WaniKani automatically marks it as wrong. I’ve searched the forums but didn’t see anything.

I don’t care much about leveling up fast but more so that It’s so easy for me to just get complacent and spend a minute or more on one review. I need something to keep me honest and improve my memory speed.

This is old, but it was working last I tried it (maybe two years ago :eyes:)

2 Likes

I’m encountering an problem and I was wondering if anyone else is having the same issue. If I have Lightning Mode on and it is now skipping the audio for vocabulary words instead of autoplaying it like it used to. If the script is disabled it plays the audio like normal (but if I hit enter it prematurely ends the audio, not sure if WaniKani used to do that since I’ve been using Lightning Mode for the longest time without issue). Any help would be appreciated. :slight_smile:

Yeah I’m having the same issue. Disabled it for now wonder if WaniKani changed something to break this.

1 Like

That’s what I figured since I hadn’t changed anything on my end. Thanks for confirming that the problem isn’t just something affecting me.

@goberflunk and @Tyogin You should both disable this script and try Double Check instead, which has a lightning mode feature incorporated. I don’t think that this script is being maintained anymore

5 Likes

Double Check solved the issue for me, thanks a bunch!

3 Likes

Thanks Kumirei, I just installed this and it still works two years later. The first and only script I have installed. I set the counter to 20 seconds which I feel is fair.

Time to strap in a feel the G’s. My accuracy will plummet but them’s the breaks.

772771

2 Likes

When used during the lesson quiz, after getting a wrong answer that causes an info box to automatically open, this script will sometimes cause that box to immediately close again without user interaction. Any chance you could fix this behavior or make doublecheck work in lessons?

Edit: Upon additional investigation, it looks like the relevant lines are:

case 'warning':
case '':
	break;
default:
	$('#additional-content #option-item-info').click();
	break;

So if there is no explicit case for incorrect, and this causes it to click the item info button. This means that when the answer is wrong, the item info box will be automatically opened if it was closed and automatically closed if it was opened. What is the expected behavior?

hey, I since I updated chrome the lightning mode script doesn’t seem to work anymore :confused:
hope you can help me out, thanks in advance

First recommendation would be to switch to Double Check script, which contains a newer (and still supported) version of lightning mode. You can disable the Double Check features that you don’t want to use.

2 Likes

just installed it and everything works just fine, thank you :relaxed:

edit: still have one question. enabled the "Show Item Info
" feature but the info won’t show when my answer is incorrect. the page will drop down a bit but the info won’t pop up

image

these are my enabled scripts btw

To get the info to display upon wrong answer when lightning mode is enabled, turn on “Delay when wrong” in the Mistake Delay tab.

I suppose I could make that more intuitive by automatically turning on “Delay when wrong” if “Show Item Info -> After incorrect answer” is enabled.

Then again, I wonder if that would create confusion for people who want lightning mode to auto-advance even during a wrong answer. In that case, “Delay when wrong” would have no effect. So, maybe it’s better to leave it as-is.

Anyway… as I said, just turn on “Delay when wrong”.

1 Like

thanks for replying

I actually have this option turned on. I guess something is hindering the info box to open when I get a wrong answer :thinking:

image

Hmm… okay.
Unfortunately, I won’t have time to look into it for at least a few weeks. But if I remember by then, I’ll take a look.

1 Like