欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples
欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples

Manifest - Key

Published on Updated on

Warning

The Chrome Web Store no longer accepts Manifest V2 extensions. Please use Manifest V3 when building new extensions. You will find a section on upgrading in the navigation tree at the left, including the Manifest V2 support timeline.

This value can be used to control the unique ID of an extension, app, or theme when it is loaded during development.

Note: You don't usually need to use this value. Instead, write your code so that the key value doesn't matter by using relative paths and extension.getURL.

To get a suitable key value, first install your extension from a .crx file (you may need to upload your extension or package it manually). Then, in your user data directory, look in the file Default/Extensions/EXTENSION_ID/EXTENSION_VERSION/manifest.json. You will see the key value filled in there.

Updated on Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.