Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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://*" ]
}
Comment

manifest.json example

{
    "theme_color": "#333",
    "background_color": "#eee",
    "display": "standalone",
    "scope": "/path/to/project/directory/",
    "start_url": "/index.php",
    "name": "My Project",
    "short_name": "Project",
    "description": "Short description here",
    "icons": [
        {
            "src": "path/to/icon-192x192.png",
            "sizes": "192x192",
            "type": "image/png"
        },
        {
            "src": "path/to/icon-256x256.png",
            "sizes": "256x256",
            "type": "image/png"
        },
        {
            "src": "path/to/icon-384x384.png",
            "sizes": "384x384",
            "type": "image/png"
        },
        {
            "src": "path/to/icon-512x512.png",
            "sizes": "512x512",
            "type": "image/png"
        },
		{
	    	"src": "path/to/maskable_icon_192.png",
	    	"sizes": "192x192",
	    	"type": "image/png",
	    	"purpose": "maskable"
		},
		{
	    	"src": "path/to/maskable_icon_512.png",
	    	"sizes": "512x512",
	    	"type": "image/png",
	    	"purpose": "maskable"
		}
    ]
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: reverse words in a string javascript 
Javascript :: javascript how to reverse a string 
Javascript :: determine if array has duplicates lodash 
Javascript :: react forms 
Javascript :: Close popup window 
Javascript :: what indexof in javascript 
Javascript :: javascript enum 
Javascript :: if classlist contains js 
Javascript :: distance to km javascript 
Javascript :: unity javascript 
Javascript :: how to delete file from firebase storage on web 
Javascript :: create a solid.js project 
Javascript :: how to run js before submit html 
Javascript :: redirect http to https express js 
Javascript :: javascript error logging 
Javascript :: bootstrap datepicker mindate and maxdate 
Javascript :: jquery change tabs 
Javascript :: react native gradient 
Javascript :: @ media min and max width material ui 
Javascript :: javascript canvas to image 
Javascript :: urlencoded limit express 
Javascript :: slice javascript string 
Javascript :: javascript copy to clipboard 
Javascript :: react router active link 
Javascript :: two sum javascript solution 
Javascript :: export all functions from js file 
Javascript :: react native npm run start port 
Javascript :: javascript get referrer 
Javascript :: bootstrap dropdown doesnt work with angular 12 
Javascript :: discord.js how to send message 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =