{
  "manifest_version": 3,
  "name": "Dashcam",
  "version": "0.2.2",
  "description": "Why double-back when you can capture it the first time? Playback and share whatever happens with Dashcam's desktop replay buffer.",
  "icons": {
    "128": "icons/128.png"
  },
  "background": {
    "service_worker": "background.js"
  },
  "action": {
    "default_title": "Dashcam",
    "default_popup": "popup/popup.html"
  },
  "permissions": ["webNavigation", "scripting", "webRequest"],
  "host_permissions": [
    "<all_urls>",
    "https://github.com/",
    "https://bitbucket.org/",
    "https://*.atlassian.net/",
    "https://*.height.app/"
  ],
  "content_scripts": [
    {
      "matches": [
        "*://github.com/*/issues/*",
        "*://github.com/*/pull/*",
        "*://github.com/*/compare/*",
        "*://bitbucket.org/*/pull-requests/*",
        "*://*.atlassian.net/*",
        "*://*.height.app/*/T-*",
        "*://*.height.app/T-*"
      ],
      "js": ["./replayable/index.js"],
      "css": ["./replayable/index.css"],
      "all_frames": true,
      "content_security_policy": "script-src 'self' https://replayable.us.auth0.com; object-src 'self'"
    },
    {
      "matches": ["<all_urls>"],
      "js": ["./logs/index.js"],
      "all_frames": true,
      "run_at": "document_start"
    }
  ],
  "web_accessible_resources": [
    {
      "resources": ["shared/*", "replayable/*"],
      "matches": [
        "https://github.com/*",
        "https://bitbucket.org/*",
        "https://*.atlassian.net/*",
        "https://*.height.app/*"
      ]
    },
    {
      "resources": ["logs/*"],
      "matches": ["<all_urls>"]
    }
  ]
}
