Nevermind, I noticed it doesn't work for me either. Maybe there has been some changes in Showdown's code that broke it.
Anyways, my goal was making a userscript that replaced all sprites with their equivalent from Pokèmon Essentials (of course I'm asking for their permission as well). Since...