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

Package for Firefox #2

Open
whinis opened this issue Oct 31, 2021 · 0 comments
Open

Package for Firefox #2

whinis opened this issue Oct 31, 2021 · 0 comments

Comments

@whinis
Copy link

whinis commented Oct 31, 2021

The extensions framework is mostly universal now, so with minimal changes this same addon should work for firefox.

All I had todo to get it work locally is the following
Change references to chrome-extension referenced pages to just use absolute urls
chrome-extension://${chrome.runtime.id}/options.html => /options.html

add in manifest v2 keys
"action": copied keys into => "browser_action":

"service_worker": "background.js" => "scripts": ["background.js"]

"options_page": "options.html", =>

"options_ui": {
		"page":"/options.html"
	},

Also added in a addon-id locally so that storage would work. Otherwise no changes in javascript was required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant