From fd331aeeadd7606c09f006d351c3546126d00a20 Mon Sep 17 00:00:00 2001 From: walklty <47232102+walklty@users.noreply.github.com> Date: Wed, 1 Nov 2023 00:24:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8A=96=E9=9F=B3):=20=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=20(#1652)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update com.ss.android.ugc.aweme.ts * chore(actions): check_format_lint * feat(抖音): 开屏广告 * feat(抖音): 规则优化 --------- Co-authored-by: github-actions[bot] Co-authored-by: 二刺螈 close #1651 --- src/apps/com.ss.android.ugc.aweme.ts | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/apps/com.ss.android.ugc.aweme.ts b/src/apps/com.ss.android.ugc.aweme.ts index 14a68dde..1b56e1b4 100644 --- a/src/apps/com.ss.android.ugc.aweme.ts +++ b/src/apps/com.ss.android.ugc.aweme.ts @@ -4,9 +4,21 @@ export default defineAppConfig({ id: 'com.ss.android.ugc.aweme', name: '抖音', groups: [ + { + key: -1, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: '[desc="跳过广告"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13216121', + }, { key: 0, name: '关闭青少年弹窗', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: 'Button[text=`开启青少年模式`] + * > Button[text!=null]', }, { @@ -14,8 +26,7 @@ export default defineAppConfig({ name: '关闭用户推荐', rules: [ { - activityIds: - 'com.google.android.material.bottomsheet.BottomSheetDialog', + activityIds: 'com.ss.android.ugc.aweme.main.MainActivity', matches: '[id="com.ss.android.ugc.aweme:id/desc"][text="减少此类推荐"]', snapshotUrls: 'https://gkd-kit.gitee.io/import/12520962', @@ -49,10 +60,8 @@ export default defineAppConfig({ }, { key: 2, - activityIds: [ - 'com.ss.android.ugc.aweme.main.MainActivity', - 'com.miui.home.launcher.Launcher', - ], + matchLauncher: true, + activityIds: ['com.ss.android.ugc.aweme.main.MainActivity'], name: '关闭朋友推荐弹窗', rules: '[text="朋友推荐"] +2 [id="com.ss.android.ugc.aweme:id/close"]', snapshotUrls: [ @@ -63,6 +72,8 @@ export default defineAppConfig({ { key: 3, name: '关闭更新弹窗', + actionMaximum: 1, + resetMatch: 'app', activityIds: 'com.ss.android.ugc.aweme.main.MainActivity', rules: '@[text="以后再说"] +2 [text="立即升级"]', snapshotUrls: 'https://gkd-kit.gitee.io/import/12534016', @@ -84,6 +95,8 @@ export default defineAppConfig({ }, { key: 6, + actionMaximum: 1, + resetMatch: 'app', name: '去商店评分', desc: '点击[取消]', activityIds: 'com.ss.android.ugc.aweme.main.MainActivity', @@ -95,6 +108,8 @@ export default defineAppConfig({ { enable: false, key: 10, + actionMaximum: 1, + resetMatch: 'app', name: '请求开启通知提示信息', desc: '自动点击“暂不”', activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',