- 保活追加带 token 的 /cgi-bin/home 续期请求(we-mp-rss/hive-mp 同源做法) - 服务端未续期时本地延长临期会话 Cookie 到 7 天(仅在线验证通过后) - 新增保活运行记录 + 在线页显示会话有效期/上次保活时间/运行记录 - 桥接新增 mpState / mpKeepAlive 方法 - 修复保活锁与 syncing 状态崩溃残留导致保活永久卡死
103 lines
2.0 KiB
JSON
103 lines
2.0 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "文章同步助手",
|
|
"description": "一键同步文章到知乎、头条、掘金等 20+ 平台,支持公众号多账号保持在线",
|
|
"version": "2.2.1",
|
|
"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>"
|
|
]
|
|
}
|
|
]
|
|
}
|