Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Make a Firefox version of Better Mixer. #21

Closed
KaylaMcTear opened this issue Oct 30, 2018 · 6 comments
Closed

Make a Firefox version of Better Mixer. #21

KaylaMcTear opened this issue Oct 30, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@KaylaMcTear
Copy link

Please can we have a add on for firefox :)

@TheUnlocked
Copy link
Owner

Due to Mozilla's lengthy review process for each update, I have stayed away from supporting Firefox. I could try to get Better Mixer on Firefox, but it would update much less frequently than the Chrome version.

@KaylaMcTear
Copy link
Author

KaylaMcTear commented Oct 30, 2018 via email

@TheUnlocked TheUnlocked added the enhancement New feature or request label Nov 9, 2018
@TheUnlocked TheUnlocked changed the title No add on exstention for FireFox Make a Firefox version of Better Mixer. Nov 10, 2018
@cfultz
Copy link
Contributor

cfultz commented Aug 27, 2019

I was able to get the code working and signed by Firefox in under 20 minutes. The only issue I'm seeing is that the animated emotes from BTTV are not showing correctly on mixer.

The below is literally a simple git clone, zipped the Extension directory, and signed it through Mozilla's tools. Again, I will look into how to get the animated emotes working and see if we can merge that into the master if you are alright with this? Thanks for your hard work!

Firefox: better_mixer-2.6.5-fx.xpi.zip

@TheUnlocked
Copy link
Owner

Yes, if you can get that working I'd accept a PR. Thanks.

@TheUnlocked
Copy link
Owner

TheUnlocked commented Aug 28, 2019

Looking into this actually got a bug fix 😃 (2ee1e66)

I see two errors that keep popping up:

"storage.sync" can cause issues when loaded temporarily

Warning: This API can cause issues when loaded temporarily using about:debugging in Firefox unless you specify applications|browser_specific_settings > gecko > id in the manifest. Please see: https://mzl.la/2hizK4a for more.

Unsafe assignment to innerHTML

Warning: Due to both security and performance concerns, this may not be set using dynamic values which have not been adequately sanitized. This can lead to security issues or fairly serious performance degradation.

The former is potentially something that needs to be resolved. The latter is unlikely to cause any problems, but if we can appease the Mozilla gods that would be nice. I'll look into the latter so see if my innerHTML assignments are actually necessary where I use them (especially since I've tried to move away from assigning to innerHTML and towards more procedural DOM manipulation).

Edit:
Every instance of innerHTML assignment could easily be replaced with an innerText assignment, with the exception of the innerHTML assignments within the jquery dist. Perhaps this is a good sign that I should just stop packing jquery with the extension and instead inject it into the site from a CDN like a normal person, but that's an issue for another time.

@TheUnlocked
Copy link
Owner

Once the submission process completes, the extension will be available on Firefox at https://addons.mozilla.org/en-US/firefox/addon/bettermixer/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants