melalawi / GlobalTwitchEmotes

Browser Extension which parses Twitch emote phrases on the web
66 stars 13 forks source link

Importing GTE settings breaks the extension in firefox till you make a new profile #29

Closed fiveofeight closed 4 years ago

fiveofeight commented 4 years ago

With the launch of version 1.4.1004, my GTE settings got wiped. I tried manually added them back, and created an export of my settings, just in case they got wiped again while trying to figure out why they were getting wiped.

I tried importing my settings, which seems to have completely broken the extension in version 1.4.1005 until I create a new firefox profile and manually re-add channels instead of using the import/export feature.

To test, I created a new profile and installed only the GTE extension. On first launch, the addon appeared to work properly, when I go to settings, I see this image The plugin shows global twitch emotes and when you click on the addon, it shows the normal blacklist options image

I can add channels one by one, and enable FFZ, Bttv,and Twitch emotes, the extension still works properly. However, if I try to import settings, it seems like the extension breaks. GTESettings.txt After I import my GTE settings, "cache'd emote sets" becomes empty. I tried closing and relaunching firefox to see if it would cache them, but after the relaunch, settings were reset.

Additionally, when I click on the extension, it shows this instead of saying that the page is whitelisted or blacklisted. image

If I try to manually change and save settings, as soon as I close and re-open the settings page, all settings are gone (even default ones like "Twitch-style Emote Tooltips"). These are the errors that show up in the console from about:debugging when opening the plugin settings and trying to save settings: https://streamable.com/sy8a9f

Edit: After doing some more searching, found out two things:

A the import is actually fine, the problem is that if a streamer on your twitch.tv sub emote or better ttv emote list (if they're on ffz it doesn't seem to have issues) is banned (like forsen is now) or you enter a non-existing channel name ( for example hfsdsfdsfds), it breaks the addon and won't load emotes for any channel.

You can fix it without doing creating a new profile however, by going to about:debugging>This Firefox>Global Twitch Emotes>Inspect>Console and typing "browser.storage.sync.clear();" into the console, then disabling and re-enabling the extension. This will reset it to its default settings.