Skip to content

brettz9/convert-manifest-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-manifest-format

Converts between Firefox and Chrome's flavor of WebExtensions Manifest v3.

The following changes may be made:

  1. Firefox currently still requires a background.scripts array, while Chrome requires a background.service_worker string.

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.

  1. 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).

  2. If the Firefox mode is chosen, any options_page value will be converted to "options_ui": {"page": "..."}.

Install

npm i -D convert-manifest-format

Usage

To convert to Chrome:

convert-manifest-format --chrome

To convert to Firefox:

convert-manifest-format --firefox

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published