# \[Userscript\] Lesson/Review Count in Forums

**URL:** <https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428>\
**Category:** API And Third-Party Apps\
**Created:** [March 8, 2017, 11:22pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428 "2017-03-08T23:22:00Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![alexbeldan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/alexbeldan/32/63446_2.png) [@alexbeldan](https://community.wanikani.com/u/alexbeldan)\
**Post date:** [March 18, 2017, 5:15am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/81 "2017-03-18T05:15:08Z")

</div>

This script has been saving me so much. Sometimes I get lost on the forums. This makes sure I get my reviews done. Thanks so much!

---

<div class="post-metadata">

**Author:** ![anon8320576](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@anon8320576](https://community.wanikani.com/u/anon8320576)\
**Post date:** [April 3, 2017, 1:27pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/82 "2017-04-03T13:27:44Z")

</div>

I have discovered this just today, great userscript o,o. Thank you!

---

<div class="post-metadata">

**Author:** ![AnimeCanuck](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/animecanuck/32/576730_2.png) [@AnimeCanuck](https://community.wanikani.com/u/AnimeCanuck)\
**Post date:** [April 14, 2017, 10:04pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/83 "2017-04-14T22:04:24Z")

</div>

Yay! Just re-installed this on my Windows 7 drive. Woot! 🙂

---

<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 26, 2017, 8:16pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/84 "2017-04-26T20:16:24Z")

</div>

[1.0.9](https://greasyfork.org/en/scripts/27969-wanikani-forums-lesson-review-status?version=190834) - Fixed partially cut-off timeline

 ![](https://global.discourse-cdn.com/wanikanicommunity/original/3X/8/7/875b97dd51e1d812c8e7f735d5273d72ff6340f3.png)

---

<div class="post-metadata">

**Author:** ![alexbeldan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/alexbeldan/32/63446_2.png) [@alexbeldan](https://community.wanikani.com/u/alexbeldan)\
**Post date:** [April 26, 2017, 8:28pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/85 "2017-04-26T20:28:14Z")

</div>

Thank you! I just ignored it, but now I’m super happy!

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [April 26, 2017, 10:03pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/86 "2017-04-26T22:03:04Z")

</div>

![](https://global.discourse-cdn.com/wanikanicommunity/original/3X/a/d/adfe2263bbd12a65997618ad88ba9f9f52562ca4.png) I can die happy now

---

<div class="post-metadata">

**Author:** ![MidnightOverlord](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/midnightoverlord/32/193659_2.png) [@MidnightOverlord](https://community.wanikani.com/u/MidnightOverlord)\
**Post date:** [February 9, 2018, 11:17pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/87 "2018-02-09T23:17:13Z")

</div>

Thanks for the awesome script @rfindley . It’s been working great until recently.

Didn’t really want to necro the thread but can’t find another place to discuss - I’m having an issue where it keeps asking me to enter the API key each time I access the forums…

![image](https://global.discourse-cdn.com/wanikanicommunity/original/3X/2/1/218a35e93745f464e7907d6f4d6394dafcae61f5.png)

Any idea why?

---

<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:** [February 10, 2018, 1:51am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/88 "2018-02-10T01:51:27Z")

</div>

I’m not sure of the cause, but here’s the fix:

Open your Javascript console (press F12 and click on the Console tab), type this command and press enter:

```javascript
localStorage.apikey = "insert_your_apikey_here"

```

(be sure to replace insert\_your\_apikey\_here with your api key, of course. It needs you version 1 apikey.)

---

<div class="post-metadata">

**Author:** ![MidnightOverlord](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/midnightoverlord/32/193659_2.png) [@MidnightOverlord](https://community.wanikani.com/u/MidnightOverlord)\
**Post date:** [February 10, 2018, 1:57am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/89 "2018-02-10T01:57:28Z")

</div>

Hm. This is what I get:

![image](https://global.discourse-cdn.com/wanikanicommunity/original/3X/4/5/455cc7e7e89854f93e327e3298a077eaacda2413.png)

Any idea? Is it an issue with my browser?

---

<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:** [February 10, 2018, 2:00am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/90 "2018-02-10T02:00:10Z")

</div>

Did you put your apikey in quotes? It should be 32 characters (0-9 or a-f), with no dashes or spaces inside the quotes.

---

<div class="post-metadata">

**Author:** ![MidnightOverlord](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/midnightoverlord/32/193659_2.png) [@MidnightOverlord](https://community.wanikani.com/u/MidnightOverlord)\
**Post date:** [February 10, 2018, 2:15am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/91 "2018-02-10T02:15:55Z")

</div>

No I hadn’t 😬 Good catch! Thank you!!✌🏾

---

<div class="post-metadata">

**Author:** ![alexbeldan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/alexbeldan/32/63446_2.png) [@alexbeldan](https://community.wanikani.com/u/alexbeldan)\
**Post date:** [February 12, 2018, 4:57pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/92 "2018-02-12T16:57:56Z")

</div>

I had issues where it would ask for the API before it logged me in and that was causing issues.

---

<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:** [February 12, 2018, 5:04pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/93 "2018-02-12T17:04:12Z")

</div>

Yeah, something changed on WK a while back, and the code that prompts for apikey is apparently broken. I’ll get around to looking at it eventually, but the APIv2 stuff comes first 🙂

I’ve added a link to the temporary fix in the installation instructions in the top-post.

---

<div class="post-metadata">

**Author:** ![Radish8](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/radish8/32/206088_2.png) [@Radish8](https://community.wanikani.com/u/Radish8)\
**Post date:** [June 1, 2018, 7:10am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/94 "2018-06-01T07:10:08Z")

</div>

Now that we have a [native dark theme option on the forums](https://community.wanikani.com/t/native-dark-theme-on-forums/31182/15), I’m finding the white text on light blue counters to be a little blinding but also quite difficult to read.

Would it be possible to have a slightly different colour profile for the counters?

No worries if not, it’s just a small thing ^^

---

<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:** [June 1, 2018, 7:16am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/95 "2018-06-01T07:16:32Z")

</div>

Are you familiar with CSS? The colors are on lines 40-43 in the script if you want to play with them. You could use something like [[this](https://www.w3schools.com/colors/colors_picker.asp)] to choose some colors.

If I get some spare time, I’ll see if there’s a way to determine which theme is selected, and maybe make it switch automatically.

---

<div class="post-metadata">

**Author:** ![Radish8](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/radish8/32/206088_2.png) [@Radish8](https://community.wanikani.com/u/Radish8)\
**Post date:** [June 1, 2018, 7:18am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/96 "2018-06-01T07:18:44Z")

</div>

Yeah, I am a little. I’ll do that, thanks!

An automatic switch would be awesome, but I realise it’s a pretty minor thing.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 1, 2018, 7:22am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/97 "2018-06-01T07:22:06Z")

</div>

They don’t seem to add any class to indicate theme, so I don’t think it’s possible with CSS, but there is a _“theme key”_ meta element in the head, so it’s definitely possible with JS.

---

<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:** [June 1, 2018, 7:23am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/98 "2018-06-01T07:23:09Z")

</div>

Yeah, the bigger issue is that it relies on APIv1, and I’m not sure of a good way to implement it with APIv2. Last I looked, there wasn’t a simple datapoint for gathering the same data as APIv1 has. (And there’s no easy way to get the Open Framework running on the forums due to the forums being on a different subdomain)

---

<div class="post-metadata">

**Author:** ![Radish8](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/radish8/32/206088_2.png) [@Radish8](https://community.wanikani.com/u/Radish8)\
**Post date:** [June 1, 2018, 7:27am UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/99 "2018-06-01T07:27:32Z")

</div>

Ah. That is indeed an issue!

---

<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:** [June 1, 2018, 6:00pm UTC](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428/100 "2018-06-01T18:00:43Z")

</div>

👉 **[[v1.0.10](https://greasyfork.org/en/scripts/27969-wanikani-forums-lesson-review-status)] - Add support for dark theme.**

After changing theme, refresh the page and the colors will update accordingly.

[Previous page](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428.md?page=4)

[Next page](https://community.wanikani.com/t/userscript-lessonreview-count-in-forums/16428.md?page=6)
