diff --git a/src/apps/com.smile.gifmaker.ts b/src/apps/com.smile.gifmaker.ts index 640f254c..e79ca506 100644 --- a/src/apps/com.smile.gifmaker.ts +++ b/src/apps/com.smile.gifmaker.ts @@ -5,11 +5,80 @@ export default defineAppConfig({ name: '快手', groups: [ { - key: 0, - name: '关闭青少年弹窗', + key: -1, + name: '开屏广告', activityIds: 'com.yxcorp.gifshow.HomeActivity', - rules: - '@[id=`com.smile.gifmaker:id/positive`] + [id=`com.smile.gifmaker:id/set_teenage_mode`]', + rules: '[id="com.smile.gifmaker:id/splash_skip_text"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12708602', + }, + { + key: 0, + name: '青少年模式弹窗', + activityIds: 'com.yxcorp.gifshow.HomeActivity', + rules: [ + { + matches: + '@[id=`com.smile.gifmaker:id/positive`] + [id=`com.smile.gifmaker:id/set_teenage_mode`]', + }, + { + matches: + '[id="com.smile.gifmaker:id/set_teenage_mode"] + [id="com.smile.gifmaker:id/positive"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12708609', + }, + ], + }, + { + enable: false, + key: 10, + name: '首页-红包弹窗', + desc: '自动点击x按钮', + activityIds: 'com.yxcorp.gifshow.HomeActivity', + rules: [ + { + name: '老友回归红包弹窗', + matches: + '@ImageView[id=null][clickable=true] + ViewGroup > [text!=null] + [text!=null]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12708649', + 'https://gkd-kit.gitee.io/import/12708660', + ], + }, + { + name: '限时高额奖励弹窗', + matches: + '@ImageView[id=null][clickable=true] < ViewGroup + ViewGroup >2 [text="立即领取"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12708681'], + }, + ], + }, + { + enable: false, + key: 11, + name: '首页-左侧红包悬浮控件', + desc: '自动点击x按钮', + activityIds: 'com.yxcorp.gifshow.HomeActivity', + rules: [ + { + matches: + '[id="com.smile.gifmaker:id/pendant_mask_bg"] + [id="com.smile.gifmaker:id/pendant_close"][visibleToUser=true]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12708671', + 'https://gkd-kit.gitee.io/import/12708676', // 执行规则后,控件隐藏,使用 visibleToUser=true 进行限定,防止反复触发规则 + ], + }, + ], + }, + { + enable: false, + key: 12, + name: '你可能感兴趣的人', + desc: '自动点击【关闭】', + activityIds: 'com.yxcorp.gifshow.HomeActivity', + rules: '[id="com.smile.gifmaker:id/close_pymk"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12708620', + 'https://gkd-kit.gitee.io/import/12708707', + ], }, ], });