packServer/extension/manifest.json

52 lines
1.2 KiB
JSON

{
"manifest_version": 3,
"name": "云仓视频溯源 · 单号注入",
"version": "1.0.0",
"description": "在第三方 WMS / 后台页面里按规则识别单号,就地加工成可点击的溯源入口;点击后打开溯源页面(默认演示地址可用 ?keyword={code} 承接)。",
"minimum_chrome_version": "96",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"permissions": ["storage"],
"host_permissions": [
"http://localhost:17300/*",
"http://127.0.0.1:17300/*"
],
"action": {
"default_title": "云仓视频溯源",
"default_popup": "src/popup.html",
"default_icon": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"options_ui": {
"page": "src/options.html",
"open_in_tab": true
},
"background": {
"service_worker": "src/background.js"
},
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["src/lib/rules.js", "src/content.js"],
"css": ["src/content.css"],
"run_at": "document_idle",
"all_frames": true
}
]
}