Get Extension Manifest Info

0
1
d30f
d30f

d30f Engaged on an internet extension d30f might be kinda wild — d30f on one aspect you are d30f primarily simply coding an internet d30f site, on the opposite aspect d30f you are restricted to what d30f the browser says you are d30f able to do within the d30f extension execution setting. One d30f change in that setting is d30f coming January 2023 — pushing d30f extensions to maneuver to manifest d30f model 3. I not d30f too long ago obtained inquisitive d30f about whether or not different d30f fashionable extensions had accomplished the d30f model 3 replace.

d30f d30f d30f

d30f Executing the next command within d30f the background web page (manifest d30f model 2) or service employee d30f (model 3) will present you d30f the extension’s manifest:

d30f d30f d30f
 d30f chrome.runtime.getManifest()
d30f d30f d30f

d30f The d30f getManifest d30f name returns a big d30f object detailing the extension’s manifest. d30f This is what you’d see d30f for the MetaMask browser extension:

d30f d30f d30f
 d30f {
    "writer":  d30f "https://metamask.io",
    "background":  d30f {
      d30f    "web page":  d30f "background.html",
      d30f    "persistent": true
  d30f    },
   d30f   "browser_action": {
   d30f       d30f  "default_icon": {
    d30f       d30f     "16":  d30f "photographs/icon-16.png",
      d30f       d30f   "19": "photographs/icon-19.png",
   d30f       d30f       d30f "32": "photographs/icon-32.png",
     d30f       d30f    "38": "photographs/icon-38.png",
  d30f       d30f       d30f  "64": "photographs/icon-64.png",
    d30f       d30f },
      d30f    "default_popup": "popup.html",
  d30f       d30f   "default_title": "MetaMask"
   d30f   },
    d30f  "instructions": {
    d30f       d30f "_execute_browser_action": {
     d30f       d30f    "suggested_key": {
  d30f       d30f       d30f       d30f "chromeos": "Alt+Shift+M",
     d30f       d30f       d30f   "linux": "Alt+Shift+M",
   d30f       d30f       d30f     "mac":  d30f "Alt+Shift+M",
      d30f       d30f       d30f  "home windows": "Alt+Shift+M"
   d30f       d30f       d30f }
      d30f    }
   d30f   },
    d30f  "content_scripts": [
    d30f       d30f {
      d30f       d30f   "all_frames": true,
   d30f       d30f       d30f "js": [
     d30f       d30f       d30f   "disable-console.js",
    d30f       d30f       d30f    "globalthis.js",
   d30f       d30f       d30f     "lockdown-install.js",
  d30f       d30f       d30f       d30f "lockdown-run.js",
      d30f       d30f       d30f  "lockdown-more.js",
     d30f       d30f       d30f   "contentscript.js"
    d30f       d30f     ],
  d30f       d30f       d30f  "matches": [
    d30f       d30f       d30f    "file://*/*",
   d30f       d30f       d30f     "http://*/*",
  d30f       d30f       d30f       d30f "https://*/*"
      d30f       d30f   ],
    d30f       d30f     "run_at":  d30f "document_start"
      d30f    }
   d30f   ],
    d30f  "current_locale": "en_US",
    d30f  "default_locale": "en",
    d30f  "description": "An Ethereum Pockets  d30f in your Browser",
    d30f  "externally_connectable": {
    d30f       d30f "ids": [
     d30f       d30f    "*"
   d30f       d30f  ],
     d30f     "matches":  d30f [
      d30f       d30f   "https://metamask.io/*"
    d30f       d30f ]
    },
  d30f    "icons": {
  d30f       d30f   "16": "photographs/icon-16.png",
   d30f       d30f  "19": "photographs/icon-19.png",
    d30f       d30f "32": "photographs/icon-32.png",
     d30f     "38":  d30f "photographs/icon-38.png",
      d30f    "48": "photographs/icon-48.png",
  d30f       d30f   "64": "photographs/icon-64.png",
   d30f   },
    d30f  "manifest_version": 2,
    d30f  "minimum_chrome_version": "66",
    d30f  "identify": "MetaMask",
    d30f  "permissions": [
    d30f       d30f "storage",
      d30f    "unlimitedStorage",
   d30f       d30f  "clipboardWrite",
     d30f     "http://localhost:8545/",
  d30f       d30f   "https://*.infura.io/",
    d30f       d30f "https://lattice.gridplus.io/*",
      d30f    "activeTab",
   d30f       d30f  "webRequest",
     d30f     "*://*.eth/",
  d30f       d30f   "notifications"
    d30f  ],
     d30f "short_name": "MetaMask",
     d30f "update_url": "https://clients2.google.com/service/update2/crx",
     d30f "model": "10.16.1"
}
d30f d30f d30f

d30f Lots of net extensions are d30f nonetheless utilizing manifest model 2, d30f so many extension builders are d30f pushing to complete manifest model d30f 3 work!

d30f d30f d30f
d30f d30f d30f d30f
d30f
d30f

LEAVE A REPLY

Please enter your comment!
Please enter your name here