From 4dd1f09726c83cf5cc2b3dfc3a33c7d94424f5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Tue, 31 Oct 2023 23:59:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(X):=20=E4=BF=A1=E6=81=AF=E6=B5=81=E5=B9=BF?= =?UTF-8?q?=E5=91=8A-=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99=E9=A1=B5=20(#123?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.twitter.android.ts | 43 +++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/src/apps/com.twitter.android.ts b/src/apps/com.twitter.android.ts index 696f3142..cb708ef4 100644 --- a/src/apps/com.twitter.android.ts +++ b/src/apps/com.twitter.android.ts @@ -10,6 +10,7 @@ export default defineAppConfig({ desc: '点击右上角关闭,点击我不喜欢', activityIds: 'com.twitter.app.main.MainActivity', cd: 3000, // https://github.com/gkd-kit/subscription/issues/832 + quickFind: true, rules: [ { key: 0, @@ -37,12 +38,12 @@ export default defineAppConfig({ }, { key: 2, - name: '信息流广告-帖子详情页、搜索页、用户资料页', + name: '信息流广告-帖子详情页、搜索页', desc: '点击右上角关闭,点击屏蔽用户,确认屏蔽.点击[我不喜欢]会返回主页,因此点击[屏蔽]', + quickFind: true, activityIds: [ 'com.twitter.tweetdetail.TweetDetailActivity', 'com.twitter.android.search.implementation.results.SearchActivity', - 'com.twitter.app.profiles.ProfileActivity', ], cd: 3000, rules: [ @@ -90,5 +91,43 @@ export default defineAppConfig({ }, ], }, + { + key: 3, + name: '信息流广告-用户资料页', + desc: '点击右上角关闭,点击我不喜欢', + quickFind: true, + activityIds: ['com.twitter.app.profiles.ProfileActivity'], + cd: 3000, + rules: [ + { + name: '点击右上角关闭', + key: 0, + matches: + '@[id="com.twitter.android:id/tweet_curation_action"] +n [id="com.twitter.android:id/tweet_promoted_badge_bottom"][text="推荐"]', + snapshotUrls: [ + 'https://i.gkd.li/import/12825969', // com.twitter.tweetdetail.TweetDetailActivity + 'https://i.gkd.li/import/12847584', // com.twitter.android.search.implementation.results.SearchActivity + ], + }, + { + name: '点击右上角关闭', + key: 1, + matches: + '@[id="com.twitter.android:id/tweet_curation_action"] <2 * + [id="com.twitter.android:id/tweet_auto_playable_content_parent"] > [id="com.twitter.android:id/tweet_promoted_badge_bottom"][text$="推荐"]', + snapshotUrls: [ + 'https://i.gkd.li/import/12882676', // com.twitter.tweetdetail.TweetDetailActivity + 'https://i.gkd.li/import/12904603', // com.twitter.app.profiles.ProfileActivity + ], + }, + { + preKeys: [0, 1], + key: 10, + name: '点击[我不喜欢这个广告]', + matches: + '@ViewGroup > [id="com.twitter.android:id/action_sheet_item_title"][text="我不喜欢这个广告"]', + snapshotUrls: 'https://i.gkd.li/import/12798810', + }, + ], + }, ], });