From fd938afdc8806bc5f62f30ce766d29f0968d2977 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Fri, 10 Jan 2025 14:11:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=A4=9A=E5=B1=8F=E4=BA=92=E5=8A=A8):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A=E3=80=81=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A-=E5=BC=B9=E7=AA=97=E5=B9=BF=E5=91=8A=20(#694?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.tnscreen.main.ts | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/apps/com.tnscreen.main.ts diff --git a/src/apps/com.tnscreen.main.ts b/src/apps/com.tnscreen.main.ts new file mode 100644 index 00000000..b1c25759 --- /dev/null +++ b/src/apps/com.tnscreen.main.ts @@ -0,0 +1,41 @@ +import { defineGkdApp } from '@gkd-kit/define'; + +export default defineGkdApp({ + id: 'com.tnscreen.main', + name: '多屏互动', + groups: [ + { + key: 1, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 2, // https://github.com/AIsouler/GKD_subscription/issues/694 + resetMatch: 'app', + priorityTime: 10000, + rules: [ + { + fastQuery: true, + matches: + 'LinearLayout[childCount>0] + LinearLayout[vid="welcome_ad_view_skip"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/d14f7876-892f-4a25-aa1f-0f7500be52cb', + snapshotUrls: 'https://i.gkd.li/i/18368988', + excludeSnapshotUrls: 'https://i.gkd.li/i/18370963', // LinearLayout[childCount>0] 防止提前触发 + }, + ], + }, + { + key: 2, + name: '全屏广告-弹窗广告', + desc: '点击关闭', + rules: [ + { + activityIds: + 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', + matches: + '[text="反馈"] +(1,2) View[childCount=1] > Image[childCount=0][text=""][width<60 && height<60]', + exampleUrls: 'https://e.gkd.li/be4513a1-fdf8-4889-a65d-55e2e0664afc', + snapshotUrls: 'https://i.gkd.li/i/18371332', + }, + ], + }, + ], +});