mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 09:15:11 +08:00
feat(X): 信息流广告-帖子详情页
This commit is contained in:
@@ -6,53 +6,61 @@ export default defineAppConfig({
|
|||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '信息流广告',
|
name: '信息流广告-主页',
|
||||||
|
desc: '点击右上角关闭,点击我不喜欢',
|
||||||
activityIds: 'com.twitter.app.main.MainActivity',
|
activityIds: 'com.twitter.app.main.MainActivity',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '视频广告',
|
name: '视频广告-点击右上角关闭',
|
||||||
matches:
|
matches:
|
||||||
'@[id="com.twitter.android:id/tweet_curation_action"] <2 LinearLayout + LinearLayout >n [id="com.twitter.android:id/upper_video_attribution"][text="视频将在广告后播放"]',
|
'@[id="com.twitter.android:id/tweet_curation_action"] <2 LinearLayout + LinearLayout >n [id="com.twitter.android:id/upper_video_attribution"][text="视频将在广告后播放"]',
|
||||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12798795',
|
snapshotUrls: 'https://gkd-kit.songe.li/import/12798795',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '推荐广告',
|
name: '推荐广告-点击右上角关闭',
|
||||||
matches:
|
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="推荐"]',
|
'@[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://gkd-kit.gitee.io/import/12813235',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12813235',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
preKeys: [0, 1],
|
||||||
name: '评论区广告',
|
key: 10,
|
||||||
activityIds: 'com.twitter.tweetdetail.TweetDetailActivity',
|
name: '点击[我不喜欢这个广告]',
|
||||||
|
matches:
|
||||||
|
'@ViewGroup > [id="com.twitter.android:id/action_sheet_item_title"][text="我不喜欢这个广告"]',
|
||||||
|
snapshotUrls: 'https://gkd-kit.songe.li/import/12798810',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 2,
|
||||||
|
name: '信息流广告-帖子详情页',
|
||||||
|
desc: '点击右上角关闭,点击屏蔽用户,确认屏蔽.点击[我不喜欢]会返回主页,因此点击[屏蔽]',
|
||||||
|
activityIds: 'com.twitter.tweetdetail.TweetDetailActivity',
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
name: '评论区广告-点击右上角关闭',
|
||||||
|
key: 0,
|
||||||
matches:
|
matches:
|
||||||
'@[id="com.twitter.android:id/tweet_curation_action"] +n [id="com.twitter.android:id/tweet_promoted_badge_bottom"][text="推荐"]',
|
'@[id="com.twitter.android:id/tweet_curation_action"] +n [id="com.twitter.android:id/tweet_promoted_badge_bottom"][text="推荐"]',
|
||||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12825969',
|
snapshotUrls: 'https://gkd-kit.songe.li/import/12825969',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: [0, 1, 2],
|
preKeys: [0],
|
||||||
key: 10,
|
key: 10,
|
||||||
name: '点击屏蔽',
|
name: '点击屏蔽',
|
||||||
activityIds: [
|
|
||||||
'com.twitter.app.main.MainActivity',
|
|
||||||
'com.twitter.tweetdetail.TweetDetailActivity',
|
|
||||||
],
|
|
||||||
matches:
|
matches:
|
||||||
'@ViewGroup > [id="com.twitter.android:id/action_sheet_item_title"][text^="屏蔽"]', // 点击“我不喜欢”会返回主页,应当点击“屏蔽”。https://github.com/gkd-kit/subscription/issues/609#issuecomment-1745172531
|
'@ViewGroup > [id="com.twitter.android:id/action_sheet_item_title"][text^="屏蔽"]',
|
||||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12798810',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12828815',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: 10,
|
preKeys: 10,
|
||||||
key: 11,
|
key: 11,
|
||||||
activityIds: [
|
|
||||||
'com.twitter.app.main.MainActivity',
|
|
||||||
'com.twitter.tweetdetail.TweetDetailActivity',
|
|
||||||
],
|
|
||||||
name: '二次确认-点击屏蔽',
|
name: '二次确认-点击屏蔽',
|
||||||
matches: '[text="取消"] + [text="屏蔽"]',
|
matches: '[text="取消"] + [text="屏蔽"]',
|
||||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12825947',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12828832',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user