{
  "manifest_version": 3,
  "name": "EnvizapLeads",
  "version": "3.0.0",
  "description": "Extração inteligente de contatos do Bing Maps",
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "action": {
    "default_icon": {
      "16": "icons/icon16.png",
      "48": "icons/icon48.png"
    }
  },
  "options_ui": {
    "page": "options/options.html",
    "open_in_tab": true
  },
  "background": {
    "service_worker": "background.js",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": ["https://www.bing.com/maps/*"],
      "js": ["content.js"],
      "run_at": "document_idle"
    }
  ],
  "permissions": [
    "activeTab",
    "scripting",
    "storage",
    "downloads",
    "tabs",
    "identity"
  ],
  "host_permissions": [
    "https://www.bing.com/maps/*",
    "https://www.bing.com/*",
    "https://atlas.microsoft.com/*",
    "https://places.googleapis.com/*",
    "https://*.googleapis.com/*",
    "https://*.firebaseapp.com/*",
    "https://identitytoolkit.googleapis.com/*",
    "https://securetoken.googleapis.com/*",
    "https://firestore.googleapis.com/*",
    "https://us-central1-envizapleads.cloudfunctions.net/*"
  ],
  "web_accessible_resources": [
    {
      "resources": ["options/options.html", "content.js"],
      "matches": ["<all_urls>"]
    }
  ]
}
