[Userscript] Media Context Sentences (formerly Anime Context Sentences 2)

Is this working after the big october overhaul? I can’t seem to get it working on my end. Thank you.

edit false alarm! It works. The cache was corrupted.

I followed these steps:
Solution 2: Manually Delete the Cache (The Console Way)

If the settings menu itself is broken or won’t open, you can run the command manually.

  1. Go to any WaniKani page.

  2. Press F12 to open Developer Tools and click the Console tab.

  3. Copy and paste the following command into the console and press Enter. This will delete the corrupted data file:

    JavaScript

    await wkof.file_cache.delete('media-context-sentences.immersion-kit-data')
    
    
  4. Just to be safe, let’s clear the script’s settings cache too. Run this command next:

    JavaScript

    await wkof.file_cache.delete('wkof.settings.media-context-sentences')
    
    
  5. Reload the page (F5 or Ctrl+R). The script will be reset to its defaults and will re-fetch all its data, which should fix the problem.

4 Likes

The context sentences have stopped showing up all of a sudden on my end, is this happening to anyone else? I’ve tried deleting the cache and reinstalling the script but it still acts as if I didn’t have the script installed at all, weird :thinking:

Edit: never mind, it works again!

Thank you so much for making this! I’d been wondering what happened to the original, this is a much appreciated improvement :folded_hands: