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="屏蔽"] <