From 418cc975c90a79af9df565ec678e331cb472e3a5 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Tue, 17 Jun 2025 19:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#995=E3=80=81#993?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.huawei.himovie.ts | 12 +++++++++--- src/apps/com.huawei.music.ts | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/apps/com.huawei.himovie.ts b/src/apps/com.huawei.himovie.ts index d6b68593..051635f7 100644 --- a/src/apps/com.huawei.himovie.ts +++ b/src/apps/com.huawei.himovie.ts @@ -7,6 +7,7 @@ export default defineGkdApp({ { key: 0, name: '开屏广告', + fastQuery: true, matchTime: 10000, actionMaximum: 1, resetMatch: 'app', @@ -15,15 +16,20 @@ export default defineGkdApp({ rules: [ { key: 0, - fastQuery: true, + action: 'clickCenter', matches: '[vid="hiad_skip_text"]', snapshotUrls: 'https://i.gkd.li/i/15523945', }, { key: 1, - matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + action: 'clickCenter', + matches: + '([text*="跳过"][text.length<10][visibleToUser=true]) || ([visibleToUser=true][text*="跳过"][text.length<10])', exampleUrls: 'https://e.gkd.li/ec00ceef-3930-4240-92f5-56816fc90be2', - snapshotUrls: 'https://i.gkd.li/i/20745477', + snapshotUrls: [ + 'https://i.gkd.li/i/20745477', + 'https://i.gkd.li/i/20773665', + ], }, ], }, diff --git a/src/apps/com.huawei.music.ts b/src/apps/com.huawei.music.ts index b4f3a869..3face9e7 100644 --- a/src/apps/com.huawei.music.ts +++ b/src/apps/com.huawei.music.ts @@ -4,6 +4,22 @@ export default defineGkdApp({ id: 'com.huawei.music', name: '华为音乐', groups: [ + { + key: 0, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + priorityTime: 10000, + rules: [ + { + fastQuery: true, + action: 'clickCenter', + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/i/20773821', + }, + ], + }, { key: 3, name: '局部广告-播放界面直播浮窗',