From 85cc01acac2e6d6504654869542451f0dd0ab961 Mon Sep 17 00:00:00 2001 From: cjy0812 Date: Thu, 23 Apr 2026 20:19:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Gmail=20=E5=88=86=E6=AE=B5=E5=B9=BF?= =?UTF-8?q?=E5=91=8A-=E4=BF=A1=E6=81=AF=E6=B5=81=E5=B9=BF=E5=91=8A(#119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close: #119 --- src/apps/com.google.android.gm.ts | 50 +++++++++---------------------- 1 file changed, 14 insertions(+), 36 deletions(-) diff --git a/src/apps/com.google.android.gm.ts b/src/apps/com.google.android.gm.ts index 8fb4c2b2..f76054c6 100644 --- a/src/apps/com.google.android.gm.ts +++ b/src/apps/com.google.android.gm.ts @@ -7,52 +7,30 @@ export default defineGkdApp({ { key: 2, name: '分段广告-信息流广告', + desc: '右滑删除⚠️该规则需v1.12.0及以上版本可使用', fastQuery: true, rules: [ { key: 1, - actionMaximum: 1, // https://github.com/Lin-arm/GKD_subscription/issues/119 matches: - '[vid="basic_ad_teaser_info_icon" || vid="button_chip_ad_teaser_info_icon"][clickable=true]', + '@[childCount=7][vid$="ad_teaser_item"] >2 [vid="ad_badge_text"]', + action: 'swipe', + swipeArg: { + start: { + left: 'width * 0.15', + top: 'width * 0.08', + }, + end: { + left: 'width * 0.64', + top: 'width * 0.08', + }, + duration: 114, + }, snapshotUrls: [ 'https://i.gkd.li/i/13255698', // 旧快照 节点还未引进 vid 属性 'https://i.gkd.li/i/25542293', ], }, - { - preKeys: [1], - key: 2, - name: '②点击[屏蔽]', - action: 'clickCenter', // 此界面不接受无障碍事件 - matches: - '@Button[clickable=true][text="屏蔽此广告" || text^="Block" || desc="屏蔽"] <