This project has been archived by its maintainers, and is no longer receiving any updates.
Extension Manifest Converter
Original(~2021): GoogleChromeLabs/extension-manifest-converter
Extension Manifest Converter is an open source tool that helps convert existing Chrome extensions to Manifest V3. Use it to convert an entire directory, extension zip file, or just a manifest.json file. All expected changes are applied to manifest.json.
Features
- Performs conversions on
- unpacked extension directories
- zip files containing an extension
- manifest.json
- General manifest.json conversions
- Updates
manifest_versionfield - Converts between host permissions declared in
permissionsoroptional_permissionsin MV2 andhost_permissionsin MV3 - Converts between a
content_security_policystring in MV2 andcontent_security_policyobject withextension_pagesandsandboxproperties in MV3 - Converts between
background.scriptsin MV2 and background service workersbackground.service_workerin MV3
- Updates
- Scripting API conversions
- Converts
chrome.tabs.executeScriptin MV2 tochrome.scripting.executeScriptin MV3. If necessary, also addsscriptingto thepermissionsarray in manifest.json. - Converts
chrome.tabs.insertCSSin Mv2 tochrome.scripting.insertCSSin MV3. If necessary, also addsscriptingto thepermissionsarray in manifest.json.
- Converts
- Action API conversions
- Converts calls to
chrome.browserActionandchrome.pageActionin MV2 intochrome.actionin MV3 - Converts
browser_actionandpage_actionmanifest entries in MV2 intoactionin MV3
- Converts calls to
Limitations
This tool aims to simplify the MV3 conversion; it does not fully automate the process. Only search
and replace changes are applied to .js files.
This tool does not:
- update any service worker code that relies on a DOM
Installation
To use this tool, you'll need to set it up by following the steps below.
-
Make sure Python 3 is installed.
python3 --versionIf you don't see a version number, follow your OS's guidance to install Python 3 or visit https://www.python.org/downloads/ to download a recent release.
-
Install
emccommand.pip install git+https://github.com/eggplants/extension-manifest-converter # or pip install extension-manifest-converter
-
Execute the test command.
emc
The tool should log basic usage information to the console.
Usage
-
Convert a directory
emc dir/path/ -
Convert a manifest file
emc manifest.json -
Convert a .zip file
emc extension.zip
License
This is not an official Google product.
Metadata
Release files for extension-manifest-converter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| extension_manifest_converter-1.0.0.tar.gz | 15.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| extension_manifest_converter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.8 kB
Release files / extension_manifest_converter-1.0.0.tar.gz
| Download URL | extension_manifest_converter-1.0.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7562f836d13e3bba41df0e08ddcb170896b19cff6c8449fce6a9d94c1771263e
|
|
BLAKE2b-256 checksum How to use checksums |
2b135ef61faf358267e705ae3f17d822f26fb3f3abddd8559fbe9dba7aa1cf2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / extension_manifest_converter-1.0.0-py3-none-any.whl
| Download URL | extension_manifest_converter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f512082cdd4f26379b095c1347a2f569f522f02e9dc4f62402d8ca4d97395da
|
|
BLAKE2b-256 checksum How to use checksums |
e84bf474917e682a9cdf06113a8848756ff66c0706fd46d8e63b632414257f37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|