From d78894a1c05c070923090cf210fc996f2680c407 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sun, 15 Jun 2025 20:15:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=8E=E4=B8=BA=E8=A7=86=E9=A2=91-?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A=20#987?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.handsgo.jiakao.android.ts | 17 +++++++++++++---- src/apps/com.huawei.himovie.ts | 10 +++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/apps/com.handsgo.jiakao.android.ts b/src/apps/com.handsgo.jiakao.android.ts index 079db547..a0cafe48 100644 --- a/src/apps/com.handsgo.jiakao.android.ts +++ b/src/apps/com.handsgo.jiakao.android.ts @@ -36,7 +36,6 @@ export default defineGkdApp({ rules: [ { key: 0, - name: '字节广告', fastQuery: true, activityIds: 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', @@ -46,13 +45,23 @@ export default defineGkdApp({ }, { key: 1, - name: '课程广告', fastQuery: true, activityIds: 'com.handsgo.jiakao.android.main.activity.MainActivity', - matches: - '[id="com.handsgo.jiakao.android:id/adsdk__ids_cta_layout"] - * > [id="com.handsgo.jiakao.android:id/close"]', + matches: [ + '[vid="adsdk__ids_cta_layout"][visibleToUser=true]', + '[vid="close"][visibleToUser=true]https://i.gkd.li/i/20745398', + ], snapshotUrls: 'https://i.gkd.li/i/13523033', }, + { + key: 2, + fastQuery: true, + activityIds: '.main.activity.MainActivity', + matches: + '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null][parent.childCount>3] +n FrameLayout >(1,2) [text^="立即" || text="查看详情" || text="了解更多" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]', + exampleUrls: 'https://e.gkd.li/5370968e-fded-4be0-8fa4-b7997f8a861a', + snapshotUrls: 'https://i.gkd.li/i/20745379', + }, ], }, { diff --git a/src/apps/com.huawei.himovie.ts b/src/apps/com.huawei.himovie.ts index 0fba9785..d6b68593 100644 --- a/src/apps/com.huawei.himovie.ts +++ b/src/apps/com.huawei.himovie.ts @@ -7,16 +7,24 @@ export default defineGkdApp({ { key: 0, name: '开屏广告', - fastQuery: true, matchTime: 10000, actionMaximum: 1, resetMatch: 'app', + actionMaximumKey: 0, priorityTime: 10000, rules: [ { + key: 0, + fastQuery: true, matches: '[vid="hiad_skip_text"]', snapshotUrls: 'https://i.gkd.li/i/15523945', }, + { + key: 1, + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/ec00ceef-3930-4240-92f5-56816fc90be2', + snapshotUrls: 'https://i.gkd.li/i/20745477', + }, ], }, ],