Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
feat(哔哩哔哩): 分段广告-首页推荐视频卡片广告(优化规则)
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Mar 13, 2024
1 parent 751bf29 commit 5667c7b
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions src/apps/tv.danmaku.bili.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,14 @@ export default defineAppConfig({
'com.bilibili.ship.theseus.detail.UnitedBizDetailsActivity',
'com.bilibili.video.videodetail.VideoDetailsActivity',
],
rules: ['[id="tv.danmaku.bili:id/toast_x"]'],
rules: '[id="tv.danmaku.bili:id/toast_x"]',
snapshotUrls: [
'https://i.gkd.li/i/12892611',
'https://i.gkd.li/i/13308344',
'https://i.gkd.li/i/13538048', // activityIds: 'com.bilibili.video.videodetail.VideoDetailsActivity',
],
exampleUrls: [
exampleUrls:
'https://github.com/gkd-kit/inspect/assets/38517192/110db806-3f8b-4cd2-a445-06c5f5eb21eb',
],
},
{
key: 8,
Expand Down Expand Up @@ -170,24 +169,21 @@ export default defineAppConfig({
{
key: 0,
name: '点击广告卡片右下角菜单按钮',
quickFind: true,
actionMaximum: 1,
actionCd: 500,
matches:
'RelativeLayout[desc^="广告"] > ViewGroup[childCount=3] > FrameLayout[index=2]',
snapshotUrls: 'https://i.gkd.li/i/14083540',
},
{
key: 3,
name: '点击巨幅广告卡片右下角菜单按钮',
actionMaximum: 1,
actionCd: 500,
matches:
'ViewGroup[desc^="广告"] >2 ViewGroup[childCount=3] > FrameLayout[index=2]',
snapshotUrls: 'https://i.gkd.li/i/14059876',
'[desc^="广告"] >(1,2) ViewGroup[childCount=3] > FrameLayout[vid="more"][index=2]',
snapshotUrls: [
'https://i.gkd.li/i/14083540',
'https://i.gkd.li/i/14059876',
'https://i.gkd.li/i/14588315',
],
},

//预留key
{
preKeys: [0],
key: 1,
key: 50,
quickFind: true,
name: '点击[不感兴趣]',
matches: '@[clickable=true] > [text="不感兴趣"]',
Expand All @@ -199,8 +195,8 @@ export default defineAppConfig({
],
},
{
preKeys: [0, 3],
key: 4,
preKeys: [0],
key: 51,
name: '点击[相似内容过多]',
quickFind: true,
matches: '@[clickable=true] > [text="相似内容过多"]',
Expand All @@ -214,7 +210,7 @@ export default defineAppConfig({
},
{
preKeys: [0],
key: 5,
key: 52,
name: '点击[up主不感兴趣]',
quickFind: true,
matches: '@[clickable=true] > [text="up主不感兴趣"]',
Expand Down

0 comments on commit 5667c7b

Please sign in to comment.