Or change document.querySelectorAll('.hnuser') at the beginning to document.querySelectorAll('.hnuser, #me') so it will also show up beside your name when logged in at the top.
I did something similar to this in Racket to generate unique filetype icons for unknown files. If you're careful with your defaults it can work really well.