{
  "manifest_version": 3,
  "name": "Protected Extension",
  "version": "0.1.0",
  "action": { "default_popup": "popup.html" },
  "background": { "service_worker": "background.js", "type": "module" },
  "content_scripts": [
    {
      "matches": ["http://localhost:*/*", "https://*/*"],
      "js": ["content-script.js"],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "*://*.ebay.de/*",
        "*://*.ebay.com/*",
        "*://*.ebay.co.uk/*",
        "*://*.ebay.fr/*",
        "*://*.ebay.it/*",
        "*://*.ebay.es/*",
        "*://*.ebay.nl/*",
        "*://*.ebay.at/*",
        "*://*.ebay.ch/*",
        "*://*.ebay.com.au/*",
        "*://*.ebay.ca/*"
      ],
      "js": ["ebay-content-script.js"],
      "run_at": "document_idle"
    }
  ],
  "permissions": ["tabs", "scripting", "storage"],
  "host_permissions": [
    "https://*/*",
    "*://*.ebay.de/*",
    "*://*.ebay.com/*",
    "*://*.ebay.co.uk/*",
    "*://*.ebay.fr/*",
    "*://*.ebay.it/*",
    "*://*.ebay.es/*",
    "*://*.ebay.nl/*",
    "*://*.ebay.at/*",
    "*://*.ebay.ch/*",
    "*://*.ebay.com.au/*",
    "*://*.ebay.ca/*"
  ],
  "externally_connectable": {
    "matches": ["http://localhost:*/*", "https://*/*"]
  }
}
