content script 在 x.com 上 fetch S3 会 Failed to fetch;改走 background host_permissions,且 failed 任务保留媒体以便重试。 Co-authored-by: Cursor <cursoragent@cursor.com>
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
||
"manifest_version": 3,
|
||
"name": "dylive Helper",
|
||
"version": "2.2.1",
|
||
"description": "TikTok Cookie + X2 Ops(推送到 dylive /x)",
|
||
"permissions": ["cookies", "storage", "tabs", "alarms", "scripting", "clipboardWrite"],
|
||
"host_permissions": [
|
||
"https://www.tiktok.com/*",
|
||
"https://*.tiktok.com/*",
|
||
"https://x.com/*",
|
||
"https://twitter.com/*",
|
||
"https://dylive.nomadro.com/*",
|
||
"https://s3.nomadro.com/*",
|
||
"https://feiniu.nomadro.com/*",
|
||
"http://127.0.0.1/*",
|
||
"http://localhost/*",
|
||
"http://127.0.0.1:17888/*"
|
||
],
|
||
"icons": {
|
||
"16": "icons/icon-16.png",
|
||
"48": "icons/icon-48.png",
|
||
"128": "icons/icon-128.png"
|
||
},
|
||
"background": {
|
||
"service_worker": "background.js",
|
||
"type": "module"
|
||
},
|
||
"action": {
|
||
"default_popup": "popup.html",
|
||
"default_title": "dylive Helper",
|
||
"default_icon": {
|
||
"16": "icons/icon-16.png",
|
||
"48": "icons/icon-48.png",
|
||
"128": "icons/icon-128.png"
|
||
}
|
||
},
|
||
"content_scripts": [
|
||
{
|
||
"matches": [
|
||
"https://dylive.nomadro.com/tiktok*",
|
||
"http://127.0.0.1:*/tiktok*",
|
||
"http://localhost:*/tiktok*"
|
||
],
|
||
"js": ["content-dylive.js"],
|
||
"run_at": "document_idle"
|
||
},
|
||
{
|
||
"matches": [
|
||
"https://dylive.nomadro.com/*",
|
||
"http://127.0.0.1:*/*",
|
||
"http://localhost:*/*"
|
||
],
|
||
"js": ["content-dylive-bridge.js"],
|
||
"run_at": "document_idle"
|
||
},
|
||
{
|
||
"matches": ["https://x.com/*", "https://twitter.com/*"],
|
||
"js": ["content.js"],
|
||
"run_at": "document_idle"
|
||
}
|
||
]
|
||
}
|