{
  "manifest_version": 3,
  "name": "rSpace Web Clipper",
  "version": "1.0.0",
  "description": "Clip pages, text, links, and images to rSpace. Record voice notes with transcription.",
  "permissions": [
    "activeTab",
    "contextMenus",
    "storage",
    "notifications",
    "offscreen",
    "scripting"
  ],
  "host_permissions": [
    "https://rspace.online/*",
    "https://auth.encryptid.io/*",
    "*://*/*"
  ],
  "action": {
    "default_popup": "popup.html",
    "default_icon": {
      "16": "icons/icon-16.png",
      "48": "icons/icon-48.png",
      "128": "icons/icon-128.png"
    }
  },
  "icons": {
    "16": "icons/icon-16.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },
  "background": {
    "service_worker": "background.js"
  },
  "options_ui": {
    "page": "options.html",
    "open_in_tab": false
  },
  "content_security_policy": {
    "extension_pages": "script-src 'self' https://esm.sh; object-src 'self'"
  },
  "content_scripts": [
    {
      "matches": ["https://rspace.online/*", "https://*.rspace.online/*"],
      "js": ["content.js"],
      "run_at": "document_start"
    }
  ],
  "commands": {
    "open-voice-recorder": {
      "suggested_key": {
        "default": "Ctrl+Shift+V",
        "mac": "Command+Shift+V"
      },
      "description": "Open rVoice recorder"
    }
  }
}
