manifest.json basic structure 1

manifest.json basic structure

//this is the basic structure of the manifest.json of browser extensions
{
    "name":"demo",
    "version":"1.1",
    "manifest_version":2,

    "description":"a demo extesion for learning purpose",
    "browser_action":{
        "default_title":"a demo title",
        "default_popup":"popup.html"
    },
    "permissions": ["http://*", "https://*" ]
}

Here is what the above code is Doing:
1. The name of the extension is “demo”.
2. The version of the extension is “1.1”.
3. The manifest_version is 2.
4. The description of the extension is “a demo extesion for learning purpose”.
5. The default title of the extension is “a demo title”.
6. The default popup of the extension is “popup.html”.
7. The extension has permission to access all the http and https sites.

Similar Posts