Thank you for bringing attention to this behavior again and your work on fixing this!
I wasn’t aware that the script only runs when the review page is refreshed. Apparently that’s because of a Wanikani change in July 2024, which is already discussed in this forum thread: Detecting page change in userscripts
I see that your fix uses the Wanikani Open Framework ‘wkof’. I wanted to avoid the dependency on other user scripts, to keep the script easy to install and its footprint small. I think there is a way to directly react on one of the Turbo frameworks events. I will check the next days if this is possible and update the script accordingly. Your fix already points me to the right direction - thank you for that!
Also, as I am not very active on Wanikani anymore, if you or someone else wants to help maintaining this user script, you can reach out to me or directly send me a Pull Request via the user script’s github repository.
I think you need to make sure that you use the “Preformatted text” markdown in your response, the one with three backticks ```
at the start and end, like this:
```
code comes here
```