[Userscript] auto-commit; the end of the enter key

I use this because hitting the Enter key so often was giving me serious pinky finger strain. I combine it with WaniKani Lightning Mode, so I never have to hit Enter on an item I get right.

However, this script presses Enter twice for you, which was making the input box shake after every review if used in combination with Lightning Mode.

I fixed it by changing this line (line 70):

setTimeout(function(){ $("#answer-form form button").click();}, click_threshold);

into

if (!$('#lightning-mode.active').length) {
    setTimeout(function(){ $("#answer-form form button").click();}, click_threshold);
}

To others considering this: I would apply similar caution to when using the Override script; if you notice an item doesn’t commit, don’t backspace and write something else, just commit it and accept your failure :​)