0.6.0 • Published 2 years ago
convert-manifest-format v0.6.0
convert-manifest-format
Converts between Firefox and Chrome's flavor of WebExtensions Manifest v3.
The following changes may be made:
- Firefox currently still requires a
background.scriptsarray, while Chrome requires abackground.service_workerstring.
Note that if you are moving from Firefox, you should import all
of your scripts besides the main one so that there is only one
script left in background.scripts.
See https://stackoverflow.com/a/75203925/271577 for more background.
If the Firefox mode is chosen and
incognito: "split"is found, options will be given to keep, remove, or change the value (since "split" is currently not supported).If the Firefox mode is chosen, any
options_pagevalue will be converted to"options_ui": {"page": "..."}.
Install
npm i -D convert-manifest-formatUsage
To convert to Chrome:
convert-manifest-format --chromeTo convert to Firefox:
convert-manifest-format --firefox