diff --git a/dist/gkd.json b/dist/gkd.json index 6aa1fbe0..777121a2 100644 --- a/dist/gkd.json +++ b/dist/gkd.json @@ -1,7 +1,7 @@ { "id": 0, "name": "默认订阅", - "version": 31, + "version": 32, "author": "lisonge", "supportUrl": "https://github.com/gkd-kit/subscription", "apps": [ @@ -24,7 +24,7 @@ "key": 1, "name": "斗鱼-青少年模式", "desc": "关闭青少年模式提醒弹窗", - "activityIds": "com.douyu.module.home.pages.main.MainActivity", + "activityIds": "com.douyu.module.young.view.YoungModeGuideDialog", "rules": [ "[text='开启青少年模式'] + [text='我知道了']" ] diff --git a/package.json b/package.json index 53119a31..5d42068c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@gkd-kit/subscription", "type": "module", - "version": "0.0.31", + "version": "0.0.32", "main": "./dist/gkd.json", "unpkg": "./dist/gkd.json", "jsdelivr": "./dist/gkd.json", diff --git a/scripts/sync.ps1 b/scripts/sync.ps1 index f2d2e347..f5e91cf9 100644 --- a/scripts/sync.ps1 +++ b/scripts/sync.ps1 @@ -1,4 +1,9 @@ -pnpm build +try { + pnpm build +} catch { + Write-Host "An error occurred: $_" + return +} git add '.' git commit -m 'chore: sync' git push diff --git a/src/apps/air.tv.douyu.android.ts b/src/apps/air.tv.douyu.android.ts index 3ee11c23..06a71da5 100644 --- a/src/apps/air.tv.douyu.android.ts +++ b/src/apps/air.tv.douyu.android.ts @@ -20,8 +20,9 @@ export default { key: 1, name: `斗鱼-青少年模式`, desc: `关闭青少年模式提醒弹窗`, - activityIds: `com.douyu.module.home.pages.main.MainActivity`, + activityIds: `com.douyu.module.young.view.YoungModeGuideDialog`, rules: [ + // https://gkd-kit.gitee.io/import/38517192/1c081a65-688a-406b-b67b-9bfb9aba0fad `[text='开启青少年模式'] + [text='我知道了']`, // 1686970236642 ], },