From 2cab121f62e2f1a7f9b55c24bffe26bd3d11ba27 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sat, 17 May 2025 13:22:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=87=82=E7=90=83=E5=B8=9D-=E5=BC=80?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=20#913?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.dongqiudi.news.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/apps/com.dongqiudi.news.ts b/src/apps/com.dongqiudi.news.ts index 1a8cf0c3..3b42478a 100644 --- a/src/apps/com.dongqiudi.news.ts +++ b/src/apps/com.dongqiudi.news.ts @@ -10,16 +10,36 @@ export default defineGkdApp({ matchTime: 10000, actionMaximum: 1, resetMatch: 'app', + actionMaximumKey: 0, priorityTime: 10000, rules: [ { // 点击方式为 clickNode 时会误触广告,更改点击方式为 clickCenter https://github.com/AIsouler/GKD_subscription/issues/905 + key: 0, fastQuery: true, action: 'clickCenter', matches: '[text*="跳过"][text.length<10][visibleToUser=true]', exampleUrls: 'https://e.gkd.li/74db13f0-d87d-41a3-bbbb-1b075d8ae7d6', snapshotUrls: 'https://i.gkd.li/i/20218520', }, + { + key: 1, + fastQuery: true, + matches: + '@View[clickable=true] - [text="互动广告"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/3b636c88-23de-4e2a-86fd-2846a0f0274b', + snapshotUrls: 'https://i.gkd.li/i/20262129', + }, + { + key: 2, + fastQuery: true, + anyMatches: [ + '@View[text=null][clickable=true][childCount=0][visibleToUser=true][width<200&&height<200] +(1,2) TextView[index=parent.childCount.minus(1)][childCount=0] 2] >(7,8,9,10) [text*="第三方应用" || text*="扭动手机" || text*="点击或上滑"][visibleToUser=true]', + 'FrameLayout > FrameLayout[childCount>2] > @View[text=null][clickable=true][childCount=0][visibleToUser=true][width<200&&height<200] +(1,2) TextView[index=parent.childCount.minus(1)][childCount=0][visibleToUser=true]', + ], + exampleUrls: 'https://e.gkd.li/940ce4e2-da5f-4a43-b319-4131a22cb1e0', + snapshotUrls: 'https://i.gkd.li/i/20262130', + }, ], }, {