From 2fd2192ea0351650c0c1eb4be7a556454fa334da Mon Sep 17 00:00:00 2001 From: AIsouler Date: Wed, 28 Aug 2024 13:42:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(Instagram):=20=E5=8A=9F=E8=83=BD=E7=B1=BB-?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=82=B9=E5=87=BB[=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E7=BF=BB=E8=AF=91]=E8=AF=AF=E8=A7=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.instagram.android.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/apps/com.instagram.android.ts b/src/apps/com.instagram.android.ts index 861c93e3..050fd44a 100644 --- a/src/apps/com.instagram.android.ts +++ b/src/apps/com.instagram.android.ts @@ -54,18 +54,22 @@ export default defineGkdApp({ rules: [ { key: 0, - matches: '[text="查看翻译"]', + matches: '[text="查看翻译"][clickable=true]', exampleUrls: 'https://m.gkd.li/57941037/e92702d8-8349-4718-aa4d-664bf3d2f6e5', snapshotUrls: 'https://i.gkd.li/i/14093211', }, { key: 1, - excludeMatches: '[text="查看翻译"]', - matches: '[text$="查看翻译"][desc!=null]', + excludeMatches: '[text="查看翻译"][clickable=true]', + matches: + '[text$="查看翻译"][clickable=false][desc!=null][visibleToUser=true]', exampleUrls: 'https://m.gkd.li/57941037/7d6da15b-1c3f-4160-a2d3-d8223bc55132', - snapshotUrls: 'https://i.gkd.li/i/14784095', + snapshotUrls: [ + 'https://i.gkd.li/i/14784095', + 'https://i.gkd.li/i/16776676', // 避免误触 + ], }, ], },