From 4fd143e18d9daecf334794d0c1cf46436972a143 Mon Sep 17 00:00:00 2001 From: Ling0402 Date: Sat, 30 May 2026 11:15:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20X=20=E5=88=86=E6=AE=B5=E5=B9=BF?= =?UTF-8?q?=E5=91=8A-=E4=B8=BB=E9=A1=B5/=E7=94=A8=E6=88=B7=E8=B5=84?= =?UTF-8?q?=E6=96=99=E9=A1=B5=E4=BF=A1=E6=81=AF=E6=B5=81=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=20(#174))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #174 - support zh-TW && en-US - format --- src/apps/com.twitter.android.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apps/com.twitter.android.ts b/src/apps/com.twitter.android.ts index 126e6a24..4912aab0 100644 --- a/src/apps/com.twitter.android.ts +++ b/src/apps/com.twitter.android.ts @@ -47,12 +47,13 @@ export default defineGkdApp({ key: 10, name: '点击[我不喜欢这个广告]', matches: - '@ViewGroup[clickable=true] > [text="我不喜欢这个广告" || text^="屏蔽"][visibleToUser=true]', + '@ViewGroup[clickable=true] > [text="我不喜欢这个广告" || text="我不喜歡這個廣告" || text^="屏蔽" || text="封鎖" || text^="Block" ][visibleToUser=true]', snapshotUrls: [ 'https://i.gkd.li/i/12798810', 'https://i.gkd.li/i/14782902', - 'https://i.gkd.li/i/20239421', 'https://i.gkd.li/i/24359537', + 'https://i.gkd.li/i/28415651', // 我不喜欢*-zh_TW + 'https://i.gkd.li/i/20239421', // ^屏蔽 ], }, ], @@ -100,7 +101,7 @@ export default defineGkdApp({ key: 3, name: '点击屏蔽/隐藏,如果机会全用完需要取消遍再屏蔽', matches: - '@ViewGroup > [vid="action_sheet_item_title"][text^="屏蔽"||text^="Block"||text^="隐藏 @"||text^="Mute @"||text^="Unblock @"||text^="Unmute @"]', + '@ViewGroup > [vid="action_sheet_item_title"][text^="屏蔽" || text^="Block" || text^="隐藏 @" || text^="Mute @"||text^="Unblock @"||text^="Unmute @"]', snapshotUrls: [ 'https://i.gkd.li/i/12828815', 'https://i.gkd.li/i/12847600', @@ -159,7 +160,7 @@ export default defineGkdApp({ key: 10, name: '点击[我不喜欢这个广告]', matches: - '@ViewGroup > [vid="action_sheet_item_title"][text="我不喜欢这个广告"]', + '@ViewGroup > [vid="action_sheet_item_title"][text="我不喜欢这个广告" || text="我不喜歡這個廣告"]', snapshotUrls: 'https://i.gkd.li/i/12798810', }, ], From 9ed9984ac694623d262689018b6049fdfdaed163 Mon Sep 17 00:00:00 2001 From: Ling0402 Date: Sat, 30 May 2026 12:04:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20LINE=20=E5=88=86=E6=AE=B5=E5=B9=BF?= =?UTF-8?q?=E5=91=8A-=E4=B8=BB=E9=A1=B5=E4=BF=A1=E6=81=AF=E6=B5=81?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=20(#174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/jp.naver.line.android.ts | 58 +++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/apps/jp.naver.line.android.ts diff --git a/src/apps/jp.naver.line.android.ts b/src/apps/jp.naver.line.android.ts new file mode 100644 index 00000000..69607c31 --- /dev/null +++ b/src/apps/jp.naver.line.android.ts @@ -0,0 +1,58 @@ +import { defineGkdApp } from '@gkd-kit/define'; + +export default defineGkdApp({ + id: 'jp.naver.line.android', + name: 'LINE', + groups: [ + { + key: 1, + name: '分段广告-主页信息流广告', + fastQuery: true, + activityIds: [ + '.activity.main.MainActivity', + 'com.linecorp.liff.impl.LiffActivity', + ], + rules: [ + { + key: 0, + name: '①點擊[更多]', + matches: + '[vid$="ad_view"] > [vid="content_frame"] > [vid="more_button"][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/i/28415817', + exampleUrls: 'https://e.gkd.li/149307bc-4b5b-4069-87aa-867d3fa04d6e', + }, + { + preKeys: [0], + key: 1, + name: '②點擊[隱藏此Ad]', + matches: + '[text^="隱藏此" || text^="隐藏此"][clickable=true][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/i/28415850', + exampleUrls: 'https://e.gkd.li/b7d09ffe-aa81-4ef5-9e68-3a08d5228d19', + }, + { + preKeys: [1], + key: 2, + name: '③點擊"任意個理由"坐標(相對)', + actionMaximum: 1, // 防止特殊情況盲點 + position: { + left: 'width * 0.13', + top: 'width * 0.57', + }, + matches: + '[text="隱藏廣告" || text="隐藏广告" || text^="Mute"][visibleToUser=true] <<3 [vid="liff_header_view"] + [vid="liff_webview_container"]', + snapshotUrls: 'https://i.gkd.li/i/28415926', + exampleUrls: 'https://e.gkd.li/c3f3d067-0c33-4bf0-b42b-50731e86f8dd', + }, + { + preKeys: [2], + name: '④x掉[反饋窗口]', + matches: + 'Button -2 [text^="謝謝" || text^="谢谢"] <<7 [text="隱藏廣告" || text="隐藏广告" || text^="Mute"][visibleToUser=true] <<2 [vid="liff_webview_container"] - * >2 [vid="liff_header_close_button_img"][clickable=true][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/i/28416020', + exampleUrls: 'https://e.gkd.li/e8cc8681-b023-4319-840a-fa4674c64dad', + }, + ], + }, + ], +});