bug to report. if you accidently try to enter an incorrectly spelled answer twice, this shows up
and then, the “did you know this item has multiple possible readings” thing sticks around until i do the next item.
I was aware of this, but it was a cosmetic problem that I figured I would fix later when I had time to learn about mutation observers.
That time is now. 0.5 uses the recommended mutation observers, rather than the depreciated mutation events, which seemed to have problems capturing the exception and changing the text (from “WaniKani is looking for…”).
I even cleaned up the lingering notices, however note that this part is a bug in the website, not my script
. Enter the unwanted reading on a Kanji review multiple times (spam the enter key) and you will observe the same effect.
When WK adds a div with id=“answer-exception” (“WK is looking for…” and “Did you know this item…”), it does so without checking if there is already one with that id on the page, it only removes one of the these divs at a time (probably with getElementById or querySelector) under certain circumstances which include (but may not be limited to) opening the item info window, and moving the next review. Do one of these enough times (spam the ‘F’ key), and the divs with that id will eventually all be removed.