Since a number of folks are asking. Put this together for fun more than anything else, but…
Brings back the old header, mostly. Currently doesn’t get smaller when scrolling down, although it does sticky.
Gets smaller when scrolling down, but a bit ugly if lessons/reviews >99 Also a bug currently, where themes or custom CSS may cause the header to overlap onto the main contents a bit.
Oh, and most likely any scripts that affected the header will be dead when the authors update for the new UI.
Additional Notes:
1: Needs Open Framework for level number. Will try and get rid of this requirement.Hopefully @Viet doesn’t take the js away
2: Due to a brain fart, your user icon will appear as my Batman icon.
I’m at work now, so can’t really grab one. But here’s an shot from during development. Just ignore the dev console at bottom, and the new header still being there. Pretend those two things are gone.
Oh shoot, didn’t even consider the user icon. Hardcoded as mine, unintentionally. Level should update after a couple seconds if Open Framework is installed. Got an idea to not need wkof, but need to try it out.
Is it on purpose that the match is https://www.wanikani.com/ and not https://www.wanikani.com/* ?
It’s a little weird that it changes back when you go to items pages etc
Added it to my user matches and was wondering if I broke anything
Thanks for making this c:
Thank you so much for this script I love it but right now it only works on the main page. Any way to make it work on the whole site (like the radicals/kanji/vocab pages)?
@viet Didn’t window.WaniKani.studyInformation used to be set on any page that showed the header bar? I think it must have, because I was using it for the Real Numbers script (to not show 42+) and I never heard a complaint saying it didn’t work outside the dashboard.
Right now it’s not set on specific kanji pages (for example), which makes it not that useful. I’d guess it’s only set on the dashboard right now. I think it would need to be available on all pages (except maybe reviews/lessons) to be useful all around. Let me know if this actually worked this way (or if I’m going crazy ).
Yeah, we used to apply the counts via javascript using window.WaniKani.studyInformation. It has been dropped in favor of adding the count server-side during rendering. So you shouldn’t be seeing it on any page. Can you point to a page that has it?