Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
fix(微博):评论区信息流广告、自动查看原图 (#3775)
Browse files Browse the repository at this point in the history
close #3861
  • Loading branch information
AIsouler authored Jan 14, 2024
1 parent a9395ec commit 63623c7
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/apps/com.sina.weibo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,24 @@ export default defineAppConfig({
},
{
key: 17,
name: '评论区-信息流广告',
desc: '点击【x】',
activityIds: 'com.sina.weibo.feed.DetailWeiboActivity',
quickFind: true,
rules: '[text="广告"] + [id="com.sina.weibo:id/iv_close_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13632175',
name: '分段广告-评论区信息流广告',
desc: '点击X-点击不感兴趣',
rules: [
{
key: 0,
activityIds: 'com.sina.weibo.feed.DetailWeiboActivity',
matches: '[text="广告"] + [id="com.sina.weibo:id/iv_close_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13852321',
},
{
preKeys: 0,
key: 1,
activityIds: 'com.sina.weibo.feed.DetailWeiboActivity',
matches: '[text="不感兴趣"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13852322',
},
],
},
{
key: 18,
Expand All @@ -261,5 +273,17 @@ export default defineAppConfig({
rules: '@[text="不了,谢谢"] +4 [text="喜欢,给好评"]',
snapshotUrls: 'https://i.gkd.li/import/13620220',
},
{
key: 19,
quickFind: true,
name: '功能类-自动点击查看原图',
rules: [
{
activityIds: 'com.sina.weibo.photoalbum.imageviewer.ImageViewer',
matches: '@LinearLayout >3 [vid="tv_dialog_item"][text^="原图"]',
snapshotUrls: 'https://i.gkd.li/import/13929119',
},
],
},
],
});

0 comments on commit 63623c7

Please sign in to comment.