Greasy Fork is available in English.

Wanikani Double-Check

Allows retyping typo'd answers, or marking wrong when WK's typo tolerance is too lax.

< Commentaires sur Wanikani Double-Check

Question / commentaire

§
Posté le: 23/07/2024
Édité le: 23/07/2024

I've been running into a bunch of errors in the script. It doesn't show the settings icon right away, and then I also have to make the browser about half the width of my laptop screen so that the "Double Check" dropdown shows up. When I try to make updates in that dropdown, it gives me errors. I made sure to check updates for WK Open Framework (1.1.12) and Double Check (3.1.15), but it looked like they were already updated for me. I have WK Open Framework as position 1 and Double Check as position 2 in Tampermonkey.

When I start up reviews, there's an error on this line:

        scripts_menu.insertAdjacentHTML('afterend',
            `<div id="lightning-mode" class="character-header__menu-navigation-link" hidden>
                <a class="lightning-mode summary-button" href="#" title="Lightning Mode - When enabled, auto-\nadvance after answering correctly.">
                    <svg class="wk-icon wk-icon--lightning" title="Mark Right" viewBox="0 0 500 500" aria-hidden="true">
                        <use href="#wk-icon__lightning"></use>
                    </svg>
                </a>
            </div>`
        );

The error says: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertAdjacentHTML') at startup (userscript.html?name=Wanikani-Double-Check.user.js&id=8a00ca81-1665-480a-8a0e-87b46a8b8fd7:923:22) at async init_ui (userscript.html?name=Wanikani-Double-Check.user.js&id=8a00ca81-1665-480a-8a0e-87b46a8b8fd7:248:13)

Then I get another error when I first try to type in an answer in the first review of a session: Error invoking action "click->quiz-input#submitAnswer".

And then more errors occur when I get a review wrong. The settings icon that pops up Double Check also only shows after I've gotten a review wrong. Any thoughts on fixes for this?

Poster une réponse

Connectez-vous pour poster une réponse.