{
  "manifest_version": 3,
  "name": "ReadLouder",
  "version": "1.0.0",
  "description": "Press Insert to open a reader menu that speaks the selected text on any page aloud in a clean, natural voice.",
  "permissions": ["storage", "activeTab", "offscreen", "alarms"],
  "host_permissions": ["http://*/*", "https://*/*"],
  "action": {
    "default_title": "ReadLouder — press Insert on any page",
    "default_popup": "popup.html"
  },
  "background": {
    "service_worker": "background.js"
  },
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
  },
  "commands": {
    "toggle-menu": {
      "suggested_key": { "default": "Ctrl+Shift+U" },
      "description": "Toggle the ReadLouder menu (backup for the Insert key)"
    }
  },
  "content_scripts": [
    {
      "matches": ["http://*/*", "https://*/*", "file:///*"],
      "js": ["content.js"],
      "run_at": "document_idle",
      "all_frames": false
    }
  ],
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  }
}
