{ "manifest_version": 3, "name": "文章同步助手", "description": "一键同步文章到知乎、头条、掘金等 20+ 平台,支持公众号多账号保持在线", "version": "2.1.4", "icons": { "16": "assets/icon-16.png", "48": "assets/icon-48.png", "128": "assets/icon-128.png" }, "action": { "default_icon": "assets/icon-48.png", "default_popup": "src/popup/index.html" }, "permissions": [ "storage", "unlimitedStorage", "cookies", "declarativeNetRequest", "declarativeNetRequestWithHostAccess", "scripting", "tabs", "alarms", "contextMenus", "downloads" ], "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": [ "" ] } ] }