From f92a11833b1433d47d1387a49868febf7e790efc Mon Sep 17 00:00:00 2001 From: AIsouler Date: Tue, 24 Jun 2025 20:39:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=83=E9=81=93=E7=BB=8F=E7=BA=AC?= =?UTF-8?q?=E7=9B=B8=E6=9C=BA-=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A=20#1008?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.ydtx.camera.ts | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/apps/com.ydtx.camera.ts diff --git a/src/apps/com.ydtx.camera.ts b/src/apps/com.ydtx.camera.ts new file mode 100644 index 00000000..869b685d --- /dev/null +++ b/src/apps/com.ydtx.camera.ts @@ -0,0 +1,48 @@ +import { defineGkdApp } from '@gkd-kit/define'; + +export default defineGkdApp({ + id: 'com.ydtx.camera', + name: '元道经纬相机', + groups: [ + { + key: 1, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + priorityTime: 10000, + rules: [ + { + key: 0, + fastQuery: true, + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/a2e4b32b-dfee-4626-9612-6df0cb530f9e', + snapshotUrls: [ + 'https://i.gkd.li/i/20882921', + 'https://i.gkd.li/i/20882935', + ], + }, + { + // 跳过按钮在左下角时有概率误触,原因未知,误触后返回可跳过广告 + preKeys: [0], + fastQuery: true, + action: 'back', + matches: '[text="反馈" || text^="立即"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/659e3f23-4765-41bf-bb4e-e4c20575ca0a', + snapshotUrls: [ + 'https://i.gkd.li/i/20883058', + 'https://i.gkd.li/i/20883138', + ], + }, + { + key: 1, // 字节SDK + 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*="点击或上滑" || 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]', + ], + snapshotUrls: 'https://i.gkd.li/i/20883248', + }, + ], + }, + ], +});