Files
wechatsync/packages/extension/manifest.json
T
3970260761 35284395b3 feat: 主界面停靠浏览器右侧 Side Panel (v2.2.0)
- 点扩展图标直接打开/收起右侧停靠栏(sidePanel),常驻随浏览器窗口走
- manifest: default_popup 移除,新增 side_panel + sidePanel 权限
- background: setPanelBehavior(openPanelOnActionClick) + onClicked 手动开栏兜底
- 首页「窗口」按钮仅在气泡上下文 self-close,侧栏里不再误关
2026-11-10 21:27:21 +08:00

103 lines
2.0 KiB
JSON

{
"manifest_version": 3,
"name": "文章同步助手",
"description": "一键同步文章到知乎、头条、掘金等 20+ 平台,支持公众号多账号保持在线",
"version": "2.2.0",
"icons": {
"16": "assets/icon-16.png",
"48": "assets/icon-48.png",
"128": "assets/icon-128.png"
},
"action": {
"default_icon": "assets/icon-48.png"
},
"side_panel": {
"default_path": "src/popup/index.html"
},
"permissions": [
"storage",
"unlimitedStorage",
"cookies",
"declarativeNetRequest",
"declarativeNetRequestWithHostAccess",
"scripting",
"tabs",
"alarms",
"contextMenus",
"downloads",
"sidePanel"
],
"host_permissions": [
"http://*/*",
"https://*/*"
],
"background": {
"service_worker": "src/background/index.ts",
"type": "module"
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
],
"js": [
"src/content/api.ts"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"https://mp.weixin.qq.com/s/*",
"https://mp.weixin.qq.com/s?*"
],
"js": [
"src/content/weixin.ts"
],
"run_at": "document_end"
},
{
"matches": [
"https://mp.weixin.qq.com/cgi-bin/appmsg*"
],
"js": [
"src/content/weixin-editor.ts"
],
"run_at": "document_end"
},
{
"matches": [
"https://mp.toutiao.com/*"
],
"js": [
"src/content/toutiao.ts"
],
"run_at": "document_end"
},
{
"matches": [
"http://*/*",
"https://*/*"
],
"js": [
"src/content/extractor.ts"
],
"run_at": "document_end"
}
],
"web_accessible_resources": [
{
"resources": [
"assets/*",
"src/editor/index.html",
"src/sync-dialog/index.html",
"inject-api.js"
],
"matches": [
"<all_urls>"
]
}
]
}