{
  "manifest_version": 3,
  "name": "巡樓 Threads Session 同步",
  "version": "1.2.4",
  "description": "從 Chrome 已登入的 Threads 一鍵同步 session 到巡樓（開發模式爬蟲）",
  "permissions": ["cookies", "storage", "tabs", "scripting"],
  "host_permissions": [
    "https://www.threads.com/*",
    "https://threads.com/*",
    "https://www.threads.net/*",
    "https://threads.net/*",
    "https://www.instagram.com/*",
    "https://instagram.com/*",
    "https://*.facebook.com/*",
    "http://localhost:3000/*",
    "http://127.0.0.1:3000/*",
    "http://localhost:4173/*",
    "http://127.0.0.1:4173/*",
    "http://localhost:5173/*",
    "http://127.0.0.1:5173/*",
    "http://localhost:8888/*",
    "http://127.0.0.1:8888/*",
    "http://localhost:8890/*",
    "http://127.0.0.1:8890/*",
    "https://threads-tool.30cm.net/*",
    "https://*.30cm.net/*"
  ],
  "optional_host_permissions": ["http://*/*", "https://*/*"],
  "action": {
    "default_popup": "popup.html",
    "default_title": "同步 Threads Session"
  },
  "background": {
    "service_worker": "service-worker.js",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "http://localhost:3000/*",
        "http://127.0.0.1:3000/*",
        "http://localhost:4173/*",
        "http://127.0.0.1:4173/*",
        "http://localhost:5173/*",
        "http://127.0.0.1:5173/*",
        "http://localhost:8888/*",
        "http://127.0.0.1:8888/*",
        "http://localhost:8890/*",
        "http://127.0.0.1:8890/*",
        "https://threads-tool.30cm.net/*",
        "https://*.30cm.net/*"
      ],
      "js": ["content-haixun.js"],
      "run_at": "document_start",
      "all_frames": false
    }
  ],
  "web_accessible_resources": [
    {
      "resources": ["content-haixun.js"],
      "matches": ["http://*/*", "https://*/*"]
    }
  ],
  "options_page": "options.html"
}
