[UserScript] WaniKani Notify

Downloaded. Thanks a lot.

But isn’t there a way to avoid multiple API calls? (Not a rhetorical question.)
I’m only an amateur, and I’m really not savvy with everything browser-related, but… If you could create a cookie - this would be the weakest point in my argument, I believe - all you’d really need to know is when the next review is scheduled for (and the number of items to be reviewed but that doesn’t matter here).
- Have the cookie store the time of next review as nextCall (if nextCall - current time > 4 hours then nextCall = current time + 4 hours) and remain valid until current time = nextCall.
- Then have the script make an API call only if/as soon as there is no valid cookie (and replace the cookie).

The only situation where new review sessions are going to appear in the schedule after a call is if you do lessons, and this is covered by the maximum interval being set to four hours.

Then again, if you can’t create cookies (or use any other way to store values) that… doesn’t work.