镜像自地址
https://github.com/lhly/cloud-drive-renamer.git
已同步 2026-10-20 13:47:47 +08:00
新增 episodeExtract 规则类型,支持从文件名提取季集号并按模板生成新文件名。提取失败的文件会在预览中显示错误信息并自动跳过执行,避免误操作。
- 支持模板变量:{prefix} {season} {episode} {ext}
- 提供 helperPre/helperPost 锚点辅助提取
- 支持集数偏移和自定义前导零位数
- 更新规则工厂、类型定义和国际化配置
- 添加单元测试和设计文档
87 行
1.8 KiB
JSON
87 行
1.8 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"default_locale": "zh_CN",
|
|
"name": "__MSG_extName__",
|
|
"version": "1.0.3",
|
|
"description": "__MSG_extDescription__",
|
|
"permissions": [
|
|
"storage",
|
|
"tabs"
|
|
],
|
|
"host_permissions": [
|
|
"https://pan.quark.cn/*",
|
|
"https://www.aliyundrive.com/*",
|
|
"https://www.alipan.com/*",
|
|
"https://api.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.baidu.com/*"
|
|
],
|
|
"js": [
|
|
"src/content/index.ts"
|
|
],
|
|
"run_at": "document_idle"
|
|
},
|
|
{
|
|
"matches": [
|
|
"https://www.aliyundrive.com/*",
|
|
"https://www.alipan.com/*"
|
|
],
|
|
"js": [
|
|
"src/content/index.ts"
|
|
],
|
|
"run_at": "document_idle"
|
|
}
|
|
],
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": [
|
|
"src/dialog/*",
|
|
"src/dialog/**/*",
|
|
"assets/*",
|
|
"icons/*",
|
|
"*.js",
|
|
"*.css",
|
|
"src/adapters/aliyun/page-script.js",
|
|
"src/adapters/baidu/page-script.js",
|
|
"src/adapters/quark/page-script.js"
|
|
],
|
|
"matches": [
|
|
"https://pan.quark.cn/*",
|
|
"https://www.aliyundrive.com/*",
|
|
"https://www.alipan.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"
|
|
}
|
|
}
|