Whipped this up quickly. Needs open framework (because I don’t want to deal with asking the user for their API key). Thanks to Mikey’s suggestions, it now displays today’s lesson count / total lesson count.
Edit: if there is special styling when there are 0 lessons such that a number is not displayed I will have to address this at a later date (or someone could suggest the code for it) as I am far from having 0 lessons currently
Changelog
v 0.4.0
Updated script to work with the finished transition to Turbo on WaniKani. Makes use of a library script that simplifies some aspects of working with the Turbo events. This method of waiting for the turbo:frame-load event should also make the script work with the Cockpit script or any other script that moves the lesson start tile.
v 0.3.3
Added User settings:
- User can now choose to display only the total or today’s count / total
- User can now set their own preferred daily lesson amount for display
Add some initial handling for the navbar button on the dashboard only (for now)
v 0.2.1
Hides “Today’s” subtitle on lesson tile
Small change to description
v 0.2.0
Error prevention + displays today’s count vs total count