>>14844627Lines 1 to 9 are info about the script
function inject checks if there is a script with emotes2022 in the URL on the page so it only loads if the feature is still enabled
It then finds the quick reply window and injects a button to load the emotes menu into it on line 13
Line 17 runs inject if quick reply already exists, line 18 sets a listener for when the quick reply is loaded if it isn't already
Line 20 listens for a click, line 21 checks if the clicked element is an emote from the menu, line 22 adds the emote to the text box