Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd worker
npx wrangler deploy
```

部署地址:`https://videoadguard-api.xiaobaozi.cn`
部署地址:`https://videoadguard-api.0100320.xyz`

当你完成一项完整的修改后,运行构建命令,确认构建正确后便于我测试。

Expand Down Expand Up @@ -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()` 本地算法
Expand Down
2 changes: 1 addition & 1 deletion manifests/manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion manifests/manifest-firefox.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Comment on lines 1 to 4
"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"
}
}
1 change: 0 additions & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ class AdDetector {

} else {
console.log('【VideoAdGuard】无广告内容');
this.adDetectionResult = (this.adDetectionResult ? this.adDetectionResult + ' | ' : '') + '无广告内容';
this.removeAutoSkipListener();

await CacheService.saveDetectionResult(bvid, false, [], [], false);
Expand Down
1 change: 1 addition & 0 deletions src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const SDK_PRESETS: Record<LLMProvider, BaseUrlPreset[]> = {
{ 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' },
Comment on lines 54 to 58
{ 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/' },
Expand Down
4 changes: 2 additions & 2 deletions src/services/cloud-cache.ts
Original file line number Diff line number Diff line change
@@ -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<T = unknown> {
success: boolean;
Expand Down
2 changes: 1 addition & 1 deletion worker/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ invocation_logs = true

[[kv_namespaces]]
binding = "VIDEO_AD_GUARD_KV"
id = "d9e25787b49047bd99a0d7287324bcfd"
id = "08a99ada656045448949a9c1c91fad37"
Comment on lines 10 to +12
Loading