If you're using MixItUp, chances are you've seen this bug: not all emotes animate in the chat overlays. There's a lot of reasons for the failure, attributed to Twitch improving their emote system, adding low motion support, etc. But, what matters is so many emotes are on the newest URL syntax with /static/
or /animated/
in their URL path.
This fix (lines 63-70 specifically) try to make all emotes animated by default, falling back to the original MixItUp value on failure. Because this all runs locally (and emotes are on a nginx powered CDN) the requests fail fast. The error
listener swaps it back before anyone can perceive the emote is broken.
And now, animated emotes in MixItUp for all!
<3 theCodeDrift