From 4bf370dbde3a9c82cbe21a08d95e35cece7cdbd7 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Sun, 1 Sep 2024 18:11:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=99=BE=E5=BA=A6=E8=B4=B4=E5=90=A7):=20?= =?UTF-8?q?=E5=B1=80=E9=83=A8=E5=B9=BF=E5=91=8A-=E5=B8=96=E5=AD=90?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.baidu.tieba.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/apps/com.baidu.tieba.ts b/src/apps/com.baidu.tieba.ts index 7b14b4bb..0b25b813 100644 --- a/src/apps/com.baidu.tieba.ts +++ b/src/apps/com.baidu.tieba.ts @@ -352,5 +352,31 @@ export default defineGkdApp({ }, ], }, + { + key: 16, + name: '局部广告-帖子推广', + desc: '关闭首页、吧内游戏推广帖子', + rules: [ + { + fastQuery: true, + activityIds: [ + 'com.baidu.tieba.forum.ForumActivity', + 'com.baidu.tieba.tblauncher.MainTabActivity', + ], + // 防止误触标题以“游戏”开头的帖子,此页面推广帖子和正常帖子节点没有区别;[childCount=2]区分是否在热门页面 + excludeMatches: 'RelativeLayout[childCount=2] > [text="热门"]', + matches: + '@ImageView[clickable=true][visibleToUser=true] < LinearLayout <4 RelativeLayout + FrameLayout > [text^="游戏"]', + exampleUrls: 'https://e.gkd.li/e47bb03c-a7ac-4fdf-a5c5-dac1f8606d95', + snapshotUrls: [ + 'https://i.gkd.li/i/16828309', + 'https://i.gkd.li/i/16828230', + 'https://i.gkd.li/i/16828318', + 'https://i.gkd.li/i/16828401', + 'https://i.gkd.li/i/16828436', + ], + }, + ], + }, ], });