Revert "Event listeners are persistent, oops"

This reverts commit 0c2c7b9a521993948409fdc79d7e2cded2af3180.
improve .gif URL detection for abnormal URLs

also rename the main xhr value for checking the gfycat API to something
more reasonable and understandable.
fixed a ton of stupid errors