Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add firefox support #185

Merged
merged 7 commits into from
Mar 26, 2024
Merged

feat: add firefox support #185

merged 7 commits into from
Mar 26, 2024

Conversation

ignatiusmb
Copy link
Member

@ignatiusmb ignatiusmb commented Feb 22, 2024

Leveraging the cross-browser manifest trick to get the background script running. Note that Firefox will show a warning when we try to load it as a temporary add-on, but we can safely ignore the message and the extension will still work as expected

image

Svelte website detection will not work in Firefox because we can't get the version from the "MAIN" world as it is not supported yet (Bug 1736575). Moving it as content script doesn't seem to work as we need it to execute on tab and URL changes as well, not just the initial load. Tried a lot of other things but it gets too complicated and doesn't seem to be worth the effort.

Closes #177

@ignatiusmb ignatiusmb added the enhancement Pull requests that adds a new feature label Feb 22, 2024
@ignatiusmb ignatiusmb marked this pull request as ready for review March 25, 2024 13:11
@ignatiusmb ignatiusmb changed the title feat: firefox support feat: add firefox support Mar 26, 2024
@ignatiusmb ignatiusmb merged commit 0436889 into master Mar 26, 2024
2 checks passed
@ignatiusmb ignatiusmb deleted the firefox branch March 26, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests that adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Firefox
1 participant