Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant