diff --git a/CLAUDE.md b/CLAUDE.md index 02cba90..18aa1ce 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,7 +22,7 @@ cd worker npx wrangler deploy ``` -部署地址:`https://videoadguard-api.xiaobaozi.cn` +部署地址:`https://videoadguard-api.0100320.xyz` 当你完成一项完整的修改后,运行构建命令,确认构建正确后便于我测试。 @@ -87,7 +87,7 @@ Webpack 通过别名替换 `./services/audio`: - Rate Limiting(GET 2次/秒,POST 10次/分) - 云端服务异常时静默降级,不影响本地检测 -**Worker 部署:** `https://videoadguard-api.xiaobaozi.cn` +**Worker 部署:** `https://videoadguard-api.0100320.xyz` ### 关键技术细节 - **AV to BV 转换**:`BilibiliService.convertAvToBv()` 本地算法 diff --git a/manifests/manifest-chrome.json b/manifests/manifest-chrome.json index 6f4bb70..11c5155 100644 --- a/manifests/manifest-chrome.json +++ b/manifests/manifest-chrome.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "__MSG_extensionName__", - "version": "1.4.0", + "version": "1.4.1", "description": "__MSG_extensionDescription__", "default_locale": "zh_CN", "icons": { diff --git a/manifests/manifest-firefox.json b/manifests/manifest-firefox.json index e84f027..a5da727 100644 --- a/manifests/manifest-firefox.json +++ b/manifests/manifest-firefox.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "__MSG_extensionName__", - "version": "1.4.0", + "version": "1.4.1", "description": "__MSG_extensionDescription__", "default_locale": "zh_CN", "browser_specific_settings": { diff --git a/package.json b/package.json index f5ee4a7..d7e26f5 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,32 @@ { - "name": "video-ad-guard", - "version": "1.4.0", - "license": "GPL-2.0-or-later", - "scripts": { - "build": "node scripts/build.js", - "build:chrome": "webpack --config webpack.config.js --env browser=chrome", - "build:firefox": "webpack --config webpack.config.js --env browser=firefox", - "clean": "rimraf builds VideoAdGuard", - "test": "vitest", - "test:coverage": "vitest --coverage" - }, - "devDependencies": { - "@types/chrome": "^0.0.237", - "@types/md5": "^2.3.5", - "@vitest/coverage-v8": "^4.1.5", - "archiver": "^7.0.1", - "copy-webpack-plugin": "^14.0.0", - "rimraf": "^5.0.10", - "ts-loader": "^9.4.4", - "typescript": "^4.9.5", - "vitest": "^4.1.5", - "webpack": "^5.88.2", - "webpack-cli": "^4.10.0", - "wrangler": "^4.87.0" - }, - "dependencies": { - "@anthropic-ai/sdk": "^0.92.0", - "md5": "^2.3.0", - "openai": "^6.34.0" - } + "name": "video-ad-guard", + "version": "1.4.1", + "license": "GPL-2.0-or-later", + "scripts": { + "build": "node scripts/build.js", + "build:chrome": "webpack --config webpack.config.js --env browser=chrome", + "build:firefox": "webpack --config webpack.config.js --env browser=firefox", + "clean": "rimraf builds VideoAdGuard", + "test": "vitest", + "test:coverage": "vitest --coverage" + }, + "devDependencies": { + "@types/chrome": "^0.0.237", + "@types/md5": "^2.3.5", + "@vitest/coverage-v8": "^4.1.5", + "archiver": "^7.0.1", + "copy-webpack-plugin": "^14.0.0", + "rimraf": "^5.0.10", + "ts-loader": "^9.4.4", + "typescript": "^4.9.5", + "vitest": "^4.1.5", + "webpack": "^5.88.2", + "webpack-cli": "^4.10.0", + "wrangler": "^4.87.0" + }, + "dependencies": { + "@anthropic-ai/sdk": "^0.92.0", + "md5": "^2.3.0", + "openai": "^6.34.0" + } } diff --git a/src/content.ts b/src/content.ts index 471641b..152b9a9 100644 --- a/src/content.ts +++ b/src/content.ts @@ -624,7 +624,6 @@ class AdDetector { } else { console.log('【VideoAdGuard】无广告内容'); - this.adDetectionResult = (this.adDetectionResult ? this.adDetectionResult + ' | ' : '') + '无广告内容'; this.removeAutoSkipListener(); await CacheService.saveDetectionResult(bvid, false, [], [], false); diff --git a/src/popup.ts b/src/popup.ts index 5cce2cd..fac33f1 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -54,6 +54,7 @@ const SDK_PRESETS: Record = { { name: '智谱 AI', baseUrl: 'https://open.bigmodel.cn/api/anthropic', actionLabel: '注册', actionUrl: 'https://www.bigmodel.cn/glm-coding?ic=NZ1MQISIX0' }, { name: 'MiniMax', baseUrl: 'https://api.minimaxi.com/anthropic', actionLabel: '注册', actionUrl: 'https://platform.minimaxi.com/subscribe/token-plan?code=FapfOonxo7&source=link' }, { name: 'Anthropic', baseUrl: 'https://api.anthropic.com', actionLabel: '注册', actionUrl: 'https://console.anthropic.com/settings/keys' }, + { name: '小米 Token Plan', baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic', actionLabel: '注册', actionUrl: 'https://platform.xiaomimimo.com?ref=HFFE2V' }, { name: '腾讯云 Coding Plan', baseUrl: 'https://api.lkeap.cloud.tencent.com/plan/anthropic', actionLabel: '注册', actionUrl: 'https://curl.qcloud.com/xyTqcIlB' }, { name: '阿里云 Coding Plan', baseUrl: 'https://coding.dashscope.aliyuncs.com/apps/anthropic', actionLabel: '注册', actionUrl: 'https://www.aliyun.com/minisite/goods?userCode=e9b0x8ku' }, { name: '火山 Coding Plan', baseUrl: 'https://ark.cn-beijing.volces.com/api/coding', actionLabel: '注册', actionUrl: 'https://volcengine.com/L/8ziM51O_5WU/' }, diff --git a/src/services/cloud-cache.ts b/src/services/cloud-cache.ts index 1d9ed72..2349472 100644 --- a/src/services/cloud-cache.ts +++ b/src/services/cloud-cache.ts @@ -1,9 +1,9 @@ import { RemoteAdRecord } from '../types/cloud-cache'; -const CLIENT_VERSION = '1.4.0'; +const CLIENT_VERSION = '1.4.1'; // 默认云端端点 -const DEFAULT_WORKER_URL = 'https://videoadguard-api.xiaobaozi.cn'; +const DEFAULT_WORKER_URL = 'https://videoadguard-api.0100320.xyz'; interface WorkerResponse { success: boolean; diff --git a/worker/wrangler.toml b/worker/wrangler.toml index b6a0b99..9ab347d 100644 --- a/worker/wrangler.toml +++ b/worker/wrangler.toml @@ -9,4 +9,4 @@ invocation_logs = true [[kv_namespaces]] binding = "VIDEO_AD_GUARD_KV" -id = "d9e25787b49047bd99a0d7287324bcfd" +id = "08a99ada656045448949a9c1c91fad37"