Skip to content

Commit

Permalink
feat(哔哩哔哩): 分段广告-首页推荐视频卡片广告 (补充规则 #661)
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Dec 30, 2024
1 parent 78fb2ca commit 05dff52
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/apps/tv.danmaku.bili.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ export default defineGkdApp({
key: 10,
name: '分段广告-首页推荐视频卡片广告',
fastQuery: true,
activityIds: 'tv.danmaku.bili.MainActivityV2',
activityIds: '.MainActivityV2',
rules: [
{
key: 0,
name: '点击卡片广告右下角菜单按钮',
actionMaximum: 1,
matches: '@[vid="more"] - [vid="desc_content"]',
snapshotUrls: [
'https://i.gkd.li/i/14083540',
Expand All @@ -228,17 +227,23 @@ export default defineGkdApp({
},
{
key: 1,
actionMaximum: 1,
matches:
'@[vid="inline_more"][visibleToUser=true] <4 ViewGroup - FrameLayout > [vid="corner_hint_container"]',
exampleUrls: 'https://e.gkd.li/d3d37b4e-cda3-4ba6-8af3-7b45ac8efc10',
snapshotUrls: 'https://i.gkd.li/i/17428126',
excludeSnapshotUrls: 'https://i.gkd.li/i/17848536',
},
{
key: 2,
matches:
'@[vid="more"][visibleToUser=true] -2 [text^="广告"] <<n [vid="tool_container"]',
exampleUrls: 'https://e.gkd.li/21292629-5d84-407d-a889-e7bfaa4babc3',
snapshotUrls: 'https://i.gkd.li/i/18274379',
},

//预留key
{
preKeys: [0, 1],
preKeys: [0, 1, 2],
key: 50,
name: '点击[不感兴趣]/[相似内容过多]',
matches:
Expand All @@ -249,6 +254,7 @@ export default defineGkdApp({
'https://i.gkd.li/i/14155801',
'https://i.gkd.li/i/14155272',
'https://i.gkd.li/i/17428471',
'https://i.gkd.li/i/18274380',
],
},
],
Expand Down

0 comments on commit 05dff52

Please sign in to comment.