cloud-drive-renamer/manifest.json
Zain 6262c0011e feat(baidu): 添加百度网盘适配器支持
实现百度网盘适配器功能,包括:
1. 新增百度网盘API错误处理模块
2. 添加跨域通信的页面脚本注入器
3. 实现文件选择、重命名等核心功能
4. 优化DOM解析和错误处理逻辑
5. 添加国际化错误消息支持
2025-12-23 09:21:27 +08:00

91 行
1.8 KiB
JSON

{
"manifest_version": 3,
"default_locale": "zh_CN",
"name": "__MSG_extName__",
"version": "0.2.1",
"description": "__MSG_extDescription__",
"permissions": [
"storage",
"tabs"
],
"host_permissions": [
"https://pan.quark.cn/*",
"https://www.aliyundrive.com/*",
"https://pan.baidu.com/*"
],
"background": {
"service_worker": "src/background/service-worker.ts",
"type": "module"
},
"content_scripts": [
{
"matches": [
"https://pan.quark.cn/*"
],
"js": [
"src/content/index.ts"
],
"run_at": "document_idle"
},
{
"matches": [
"https://pan.quark.cn/*"
],
"js": [
"src/adapters/quark/page-script.ts"
],
"run_at": "document_start",
"world": "MAIN"
},
{
"matches": [
"https://pan.baidu.com/*"
],
"js": [
"src/content/index.ts"
],
"run_at": "document_idle"
},
{
"matches": [
"https://pan.baidu.com/*"
],
"js": [
"src/adapters/baidu/page-script.ts"
],
"run_at": "document_start",
"world": "MAIN"
}
],
"web_accessible_resources": [
{
"resources": [
"src/dialog/*",
"src/dialog/**/*",
"assets/*",
"icons/*",
"*.js",
"*.css"
],
"matches": [
"https://pan.quark.cn/*",
"https://www.aliyundrive.com/*",
"https://pan.baidu.com/*"
]
}
],
"action": {
"default_popup": "src/popup/index.html",
"default_icon": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
}