[Userscript] Advanced Context Sentence 2

I’m getting an issue in Edge preventing the icons from appearing during lessons. The buttons are still there and clickable, but they are just invisible. No errors in the console.

Example:
image

Example with Dark Reader extension and WaniKani Hide Context Sentence userscript both disabled, and also using a different lesson:
image

Edit:

Fixed this locally by disabling/reordering some userscripts I think. Hold on while I try to narrow it down.

This only occurs in Edge when I have Tampermonkey configured with “Inject Mode: Instant”.

Found the conflict: [Userscript] Detailed SRS Popup, in particular, the following line:

    wkQueue.on('review').addPostprocessing(update_item_srs);

I can work around the issue without making local changes to the Detailed SRS Popup script itself by modifying the settings for it to disable the Original matches and instead use User matches for https://www.wanikani.com/subjects/review*.

@Sinyaven, after further testing, it seems that something weird goes on with WK Queue Manipulator’s addPostprocessing. I can’t wrap my brain around how it works by briefly looking at the source, but it does appear to have inherent side-effects just by calling it—i.e., even if the callback function returns immediately.

2 Likes