[userscript] Level-Up Celebrator!

https://greasyfork.org/scripts/233-wanikani-levelup-celebrator

This is for those of you who would enjoy a little more fanfare when you go up a level!  It’s an accomplishment, and it should be celebrated! 

This script will display an image and a text message on your WaniKani dashboard when you level up.  You can customize both the image and the text. 

A picture is worth a thousand words, so please take a look at the screenshots below.

This is the built-in screen:



(That’s an animated GIF with gently falling sakura.)

Customizations are available via the GreaseMonkey menu:



Here’s the Set Image URL dialog:



And here’s the one for changing the text:



If you want to do any fancy text formatting, you need to use HTML codes (<-- link).  For example, the <br/> you see there is how you do a newline.  You can also do bold, italic, etc.  Click the link for more info.

Here’s the result of those two customizations:



And here’s another option:



After you level up, the display will be shown the next time you visit the dashboard, and will remain enabled for the following 10 minutes.  After that, the party’s over, and you need to get back to work. :wink:

Anyway… I hope you enjoy it!
-------------------------------

Version 1.1


I added a Preview command to the menu, so you can see what the display will look like.  This is helpful when you’re trying to customize the display.



Choosing the Preview command will bring up this dialog:



To see the preview, click OK and then wait for the page to refresh.
-------------------------------

Version 1.2

You can now put the level number into your text by using the keyword #LEVELNUM#

For example:




When your text is displayed, each occurrence of #LEVELNUM# will be replaced by the current level number:




----------------------------------------

Version 2.0

This version will also notify you of other notable achievements, like “First Burned turtle”, “2000th Master turtle”, etc.

I also reduced the text size by 25%, which seems to work a little better.  And, the Preview command goes right to the display, instead of going through a confirmation dialog.





----------------------------------------

Version 2.2

Updated to work with the new changes to the WaniKani website as of May 22, 2019.


----------------------------------------

Version 2.3

Added the “Set image position” menu item, so you have more control over how to arrange the image and text. In this dialog, you can specify where you want the image placed on the screen, relative to the text (left, right, above, or below.)
25 Likes

Wow, nice ha ha I might actually install this script

Cool script. Could I do fancy things like adding this:
<video controls="" autoplay="" name=“media”><source src=“http://images.wikia.com/finalfantasy/images/5/51/Victory_Fanfare.ogg” type=“audio/ogg”></video>

nqthqn said... Cool script. Could I do fancy things like adding this:
<video controls="" autoplay="" name="media"><source src="http://images.wikia.com/finalfantasy/images/5/51/Victory_Fanfare.ogg" type="audio/ogg"></video>
 I think you'd have to modify the source code to do something like that.

Very cool. I’m definitely going to use this.

This is actually fantastic. Thank you. +1 on the adding audio feature

Updated to version 1.1 (added “Preview” function.)

This.
Is.
Kul.

Updated to version 1.2 (#LEVELNUM# keyword).

Unfortunatly, some of us won’t be able to it…
(…until Koichi adds more levels)

1 Like

Great extension! この凄いアドオンはきっと使うよ。ありがとう!

Is it possible to put the picture on top if it’s small?

Like when nobody comes to your birthday party and you write yourself a congratulation card

3 Likes
Glorious said... Like when nobody comes to your birthday party and you write yourself a congratulation card
 LOL
1 Like

Updated to Version 2.0.

This version will also notify you of other notable achievements, like “First Burned turtle”, “2000th Master turtle”, etc.

2 Likes

YAY PERF

this is awesome! THANKYOU

chrome won’t let me download from greasyfork???
;A;???

This is so well timed for my level 10 celebration in a few days.
I’m looking forward to it - ha. Love it.
Thanks!!!

I scoffed at this addon when I first saw it.

Recant!  Recant!  Recant!

It’s the best part of WK!  Uhhh… besides all the learnin and stuff.