{
  "manifest_version": 3,
  "name": "XDock Plus → MyTruck Bridge",
  "version": "2.5.0",
  "description": "Synchronise XDock+ 'En cours' avec MyTruck. v2.5 : extrait le cariste principal ET le co-pilote → les 2 voient leur camion dans MyTruck.",

  "permissions": [
    "alarms",
    "tabs",
    "scripting",
    "storage",
    "notifications"
  ],

  "host_permissions": [
    "https://tf-stb-kl.xdock.de/*",
    "https://*.xdock.de/*",
    "https://www.gp-eff.fr/*",
    "https://gp-eff.fr/*"
  ],

  "background": {
    "service_worker": "background.js"
  },

  "content_scripts": [
    {
      "matches": [
        "https://www.gp-eff.fr/*",
        "https://gp-eff.fr/*"
      ],
      "js": ["mytruck_bridge.js"],
      "run_at": "document_idle"
    }
  ],

  "action": {
    "default_title": "XDock+ → MyTruck",
    "default_popup": "popup.html"
  },

  "icons": {
    "16": "icon-16.png",
    "48": "icon-48.png",
    "128": "icon-128.png"
  }
}
