{
  "manifest_version": 3,
  "name": "GIF Capture",
  "version": "1.0",
  "description": "Draw a region on any YouTube video and record it as a GIF.",
  "permissions": [
    "activeTab",
    "scripting",
    "downloads"
  ],
  "host_permissions": [
    "https://*.youtube.com/*"
  ],
  "background": {
    "service_worker": "background.js"
  },
  "content_scripts": [
    {
      "matches": ["https://*.youtube.com/watch*"],
      "js": ["content.js"],
      "run_at": "document_idle"
    }
  ],
  "action": {
    "default_title": "GIF Capture — click to draw region"
  }
}
