# Scripts for Wanikani not working

**URL:** <https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229>\
**Category:** API And Third-Party Apps\
**Created:** [April 18, 2019, 1:45pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229 "2019-04-18T13:45:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![huzel](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@huzel](https://community.wanikani.com/u/huzel)\
**Post date:** [April 18, 2019, 1:45pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/1 "2019-04-18T13:45:32Z")

</div>

Hi there,  
my scripts stopped working a few days ago. I guess it has something to do with the API key but i don’t really know stuff.  
When they first stopped i tried looking things up and found out that it could have to do with the API key and recklessly changed the keys on wanikani (v1 and v2). Of course nothing changed. Then I just reset my scripts to factory adjustment and everything worked again. Next day (after closing and reopening firefox) they stopped working again ☹  
Unfortunately I don’t know how to check the API things or insert it manually or whatnot.

So here’s what i do know:  
I’m using Firefox with Tampermonkey.  
The Kanji Highlighter script works fine.  
I do have WK Open Framework.  
When only using the Open Framework script on wanikani the following message shows up in the browser-console:

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:4

If you need anything else please tell me.

What do I need to do? Please help me senpais 🥺

---

<div class="post-metadata">

**Author:** ![huzel](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@huzel](https://community.wanikani.com/u/huzel)\
**Post date:** [April 18, 2019, 2:05pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/2 "2019-04-18T14:05:51Z")

</div>

Update:  
I started my reviews anyway and Wanikani Double-Check is working (aswell as Wanikani Niai Similar Kanji and others) as opposed to last time where nothing worked.  
The scripts on the dashboard still don’t work (for example WaniKani Real Numbers, Wanikani: Progress Percentages, WaniKani Dashboard Leech Tables - Notice your leeches)

---

<div class="post-metadata">

**Author:** ![Chrysus](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/chrysus/32/198600_2.png) [@Chrysus](https://community.wanikani.com/u/Chrysus)\
**Post date:** [April 18, 2019, 2:14pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/3 "2019-04-18T14:14:16Z")

</div>

> [@huzel](#):
>
> When only using the Open Framework script on wanikani the following message shows up in the browser-console:

Just to confirm, does this statement mean you’ve disabled _every_ script except for the exact script “Wanikani Open Framework”? Only asking because your second message lists various scripts (Real Numbers, etc.) that aren’t working, so I’m assuming you still have those enabled. Also, with _only_ “Wanikani Open Framework” enabled in Firefox, I do not receive the error.

If you _do_ have the other scripts enabled, you need to disable _all_ of them (including any scripts that _don’t_ use WKOF), and then enable each of them one by one to identify which one throws the error (ensure WKOF is enabled before enabling any scripts that rely on WKOF). Then, if you identify the problem script, you’ll be able to contact that developer directly.

---

<div class="post-metadata">

**Author:** ![Omun](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/omun/32/457654_2.png) [@Omun](https://community.wanikani.com/u/Omun)\
**Post date:** [April 18, 2019, 2:15pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/4 "2019-04-18T14:15:07Z")

</div>

> [@Chrysus](#):
>
> f you _do_ have the other scripts enabled, you need to disable _all_ of them (including any scripts that _don’t_ use WKOF), and then enable each of them one by one to identify which one throws the error (ensure WKOF is enabled before enabling any scripts that rely on WKOF). Then, if you identify the problem script, you’ll be able to contact that developer directly.

Yep ☝ Exactly what I was going to say. ^^

---

<div class="post-metadata">

**Author:** ![huzel](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@huzel](https://community.wanikani.com/u/huzel)\
**Post date:** [April 18, 2019, 6:56pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/5 "2019-04-18T18:56:55Z")

</div>

Thank you for your answer(s)!

> [@Chrysus](#):
>
> Just to confirm, does this statement mean you’ve disabled _every_ script except for the exact script “Wanikani Open Framework”?

Yes indeed. I disabled every script except for WKOF and receive this message. Just now i tried it again and two messages showed up. The first being:

Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf eval blockiert (“script-src”).  
TL: Content Security Policy: The settings of the page have blocked the loading of a resource on eval (“script-src”) [whatever eval is]

The second one again:

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.

Here’s a screenshot of the console:  
[Console](https://gyazo.com/104e3b2b48196c09ab74a4b8f98f9ee9)

Also here’s my Script-list while trying to load WKOF on the dashboard (I have proof! :D):  
[Tempermonkey](https://gyazo.com/8b3547fbf38bc7e7c4e819d7443477dd)

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [April 18, 2019, 7:00pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/6 "2019-04-18T19:00:59Z")

</div>

Those errors aren’t related to Open Framework.  
Also, Open Framework should be #1 in your script list.  
See the instructions at the link below.

> [@Installing Wanikani Open Framework](https://community.wanikani.com/t/installing-wanikani-open-framework/28549):
>
> Why you’re reading this: If you recently installed a userscript, and you suddenly find yourself reading this, it’s (probably) because the script requires the Wanikani Open Framework, an open-source, user-created project for making it easier to write scripts for Wanikani. Below are the instructions for properly installing the framework. (If you’re reading this thread for any other reason… well, hello slightly_smiling_face. Feel free to look around!) Installing the Open Framework 1. Install …

---

<div class="post-metadata">

**Author:** ![huzel](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@huzel](https://community.wanikani.com/u/huzel)\
**Post date:** [April 18, 2019, 7:18pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/7 "2019-04-18T19:18:54Z")

</div>

Thanks for pointing that out! Looks like I missed that.

---

<div class="post-metadata">

**Author:** ![huzel](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@huzel](https://community.wanikani.com/u/huzel)\
**Post date:** [April 18, 2019, 7:46pm UTC](https://community.wanikani.com/t/scripts-for-wanikani-not-working/36229/8 "2019-04-18T19:46:15Z")

</div>

Update:  
I put WKOF to top priority and it looks to be working for now. I hope that was the solution and will update if it stops running again. On a sidenote I deinstalled Keisei semantic compositions script since I’m not really using it.  
The console now (with everyting activated) still gives me the Unchecked lastError message, not the Content Security Policy message though. Maybe it’s completely unrelated though.  
Thanks again so far!

~~Edit: Can’t check the Real Numbers script right now…~~
