From efcb2777b7858545cddf954211d3ad98c7ee7a40 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sun, 16 Jun 2024 20:59:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9C=80=E5=8F=B3):=20=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/cn.xiaochuankeji.tieba.ts | 52 ++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/src/apps/cn.xiaochuankeji.tieba.ts b/src/apps/cn.xiaochuankeji.tieba.ts index 1e4abb01..7b966ca3 100644 --- a/src/apps/cn.xiaochuankeji.tieba.ts +++ b/src/apps/cn.xiaochuankeji.tieba.ts @@ -4,6 +4,43 @@ export default defineGkdApp({ id: 'cn.xiaochuankeji.tieba', name: '最右', groups: [ + { + key: -1, + name: '开屏广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + actionMaximumKey: 0, + rules: [ + { + key: 0, + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + snapshotUrls: [ + 'https://i.gkd.li/i/15858014', + 'https://i.gkd.li/i/15858024', + ], + }, + { + key: 1, + matches: + 'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true][visibleToUser=true] + TextView[text=null] < [text="不感兴趣"]', - snapshotUrls: ['https://i.gkd.li/i/12661028'], + snapshotUrls: 'https://i.gkd.li/i/12661028', }, ], }, @@ -60,12 +100,12 @@ export default defineGkdApp({ { matches: '[id="cn.xiaochuankeji.tieba:id/confirm"][text="打开通知"] + [id="cn.xiaochuankeji.tieba:id/cancel"][text="暂不开启"]', - snapshotUrls: ['https://i.gkd.li/i/12660823'], + snapshotUrls: 'https://i.gkd.li/i/12660823', }, { matches: '[text^="开启通知"] +(2) [id="cn.xiaochuankeji.tieba:id/tips_close"]', - snapshotUrls: ['https://i.gkd.li/i/12660851'], + snapshotUrls: 'https://i.gkd.li/i/12660851', }, ], },