From b1ce5f7b323ae3d0f5541e7eefc9fd987cdbb8c9 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Tue, 2 Jan 2024 20:38:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=8A=E6=97=A5=E5=A4=B4=E6=9D=A1):=20?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B5=81=E5=B9=BF=E5=91=8A=EF=BC=88=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=84=E5=88=99=EF=BC=89=20(#3577)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.ss.android.article.news.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/apps/com.ss.android.article.news.ts b/src/apps/com.ss.android.article.news.ts index a3dce2e1..c4a3634c 100644 --- a/src/apps/com.ss.android.article.news.ts +++ b/src/apps/com.ss.android.article.news.ts @@ -131,16 +131,15 @@ export default defineAppConfig({ key: 12, name: '信息流广告', desc: '点击右上角x按钮,点击不感兴趣', - activityIds: [ - 'com.bytedance.ugc.innerfeed.impl.PostInnerFeedActivity', - 'com.ss.android.article.news.activity.MainActivity', - ], rules: [ { name: '点击右上角x按钮', key: 0, - matches: - '[text^="广告"|| text$="广告" ||text^="来自"] UIView[text^="不感兴趣"]', + activityIds: [ + 'com.ss.android.article.news.activity.MainActivity', + 'com.bytedance.ugc.innerfeed.impl.PostInnerFeedActivity', + ], + matches: 'UIView[text^="不感兴趣"][visibleToUser=true]', action: 'clickCenter', snapshotUrls: [ 'https://i.gkd.li/import/12733098', @@ -148,6 +147,7 @@ export default defineAppConfig({ 'https://i.gkd.li/import/12836272', 'https://i.gkd.li/import/12840162', 'https://i.gkd.li/import/13093576', + 'https://i.gkd.li/import/12733098', ], exampleUrls: [ 'https://user-images.githubusercontent.com/44717382/273436460-cf007525-81ce-418b-ac05-3bfd75a627fe.gif', //这是 https://i.gkd.li/import/12840162 @@ -156,6 +156,11 @@ export default defineAppConfig({ { name: '点击不感兴趣', preKeys: 0, + key: 1, + activityIds: [ + 'com.ss.android.article.news.activity.MainActivity', + 'com.bytedance.ugc.innerfeed.impl.PostInnerFeedActivity', + ], matches: '@ViewGroup[clickable=true] > ImageView + TextView[text="不感兴趣"]', action: 'clickCenter',