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', }, ], 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', + }, + ], + }, + ], +});