{
  "manifest_version": 3,
  "name": "__MSG_appName__",
  "short_name": "__MSG_appName__",
  "version": "1.0.0",
  "version_name": "1.0.0-beta",
  "default_locale": "en",
  "description": "__MSG_appDescription__",
  "icons": {
    "16": "images/icon-16.png",
    "19": "images/icon-19.png",
    "32": "images/icon-32.png",
    "38": "images/icon-38.png",
    "48": "images/icon-48.png",
    "64": "images/icon-64.png",
    "128": "images/icon-128.png",
    "512": "images/icon-512.png"
  },
  "action": {
    "default_icon": {
      "16": "images/icon-16.png",
      "19": "images/icon-19.png",
      "32": "images/icon-32.png",
      "48": "images/icon-48.png",
      "128": "images/icon-128.png"
    },
    "default_title": "Unhosted",
    "default_popup": "popup.html"
  },
  "author": "https://www.unhosted.com/",
  "background": {
    "service_worker": "sw.js"
  },
  "content_scripts": [
    {
      "all_frames": true,
      "js": ["webextension-polyfill.js", "content-script.js"],
      "matches": ["file://*/*", "http://*/*", "https://*/*"],
      "run_at": "document_start"
    },
    {
      "matches": [
        "*://connect.trezor.io/*/popup.html",
        "https://connect.onekey.so/popup.html"
      ],
      "js": ["vendor/trezor/trezor-content-script.js"]
    },
    {
      "matches": ["*://x.com/*", "*://twitter.com/*"],
      "js": ["unhosted/twitter-injection.js"]
    }
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
  },
  "permissions": [
    "scripting",
    "storage",
    "unlimitedStorage",
    "alarms",
    "activeTab",
    "notifications",
    "offscreen",
    "contextMenus",
    "clipboardRead",
    "sidePanel"
  ],
  "side_panel": {
    "default_path": "sidepanel.html",
    "default_width": 400
  },
  "host_permissions": ["<all_urls>"],
  "web_accessible_resources": [
    {
      "resources": [
        "user-media-permission.html",
        "pageProvider.js",
        "/images/icon-32.png"
      ],
      "matches": ["<all_urls>"]
    }
  ]
}
