forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.tencent.qqlive.ts
More file actions
155 lines (154 loc) · 5.06 KB
/
com.tencent.qqlive.ts
File metadata and controls
155 lines (154 loc) · 5.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.qqlive',
name: '腾讯视频',
groups: [
{
key: 0,
name: '开屏广告',
matchLauncher: true,
quickFind: true,
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
rules: [
{
matches: 'FrameLayout[id=null] > TextView[text="跳过"][id=null]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12700227',
'https://gkd-kit.gitee.io/import/12700122',
'https://gkd-kit.gitee.io/import/12700541',
'https://gkd-kit.gitee.io/import/12910953',
],
},
],
},
{
key: 1,
name: '关闭青少年弹窗',
activityIds: [
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
],
rules:
'TextView[text*="青少年模式"] +n TextView[id="com.tencent.qqlive:id/arg"][text="我知道了"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700145',
},
{
key: 2,
name: '更新弹窗',
activityIds: [
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
],
rules:
'@[text="暂不升级"] - LinearLayout > FrameLayout > [text="立即升级"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700486',
},
{
key: 3,
name: '首页-顶部广告卡片',
activityIds: ['com.tencent.qqlive.ona.activity.SplashHomeActivity'],
rules: [
{
desc: '点击右上角[广告]',
matches:
'FrameLayout - RelativeLayout > RelativeLayout > FrameLayout + ImageView[clickable=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12700299',
'https://gkd-kit.gitee.io/import/12700302',
],
},
{
desc: '点击右上角[关闭广告]',
matches: '[text="关闭广告"][clickable=true]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12700518'],
},
{
desc: '点击右上角[广告]',
matches:
'RelativeLayout[id=null] > @FrameLayout[clickable=true][id!=null] > ImageView[desc="the ad tag"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12737313',
},
],
},
{
key: 4,
name: '视频播放时的广告',
desc: '自动点击 跳过广告',
activityIds: ['com.tencent.qqlive.ona.activity.VideoDetailActivity'],
rules: [
{
key: 0,
name: '点击[跳过广告]',
matches:
'@[text$="跳过广告"][clickable=true] < LinearLayout > [text="VIP可关闭该广告"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12700407',
'https://gkd-kit.gitee.io/import/12700433',
],
},
{
key: 1,
name: '点击左下角广告横幅右上角x',
matches:
'FrameLayout[childCount=2] > FrameLayout > RelativeLayout > View[id!=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13043079',
},
],
},
{
key: 5,
name: '个人中心广告',
activityIds: ['com.tencent.qqlive.ona.activity.SplashHomeActivity'],
rules: [
{
key: 0,
matches:
'ViewGroup > TextView + LinearLayout[childCount=2] + ImageView[clickable=true]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700175',
},
{
key: 1,
matches:
'RelativeLayout > FrameLayout + @ImageView[clickable=true] + ImageView + ImageView',
snapshotUrls: 'https://i.gkd.li/import/12777344',
},
],
},
{
key: 19, // 配合应用内其他广告卡片使用,反馈界面的规则都是一样的
name: '广告反馈卡片',
desc: '自动点击 不感兴趣 -> 确定',
activityIds: [
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
],
rules: [
{
key: 1,
matches:
'[text="关闭这条广告的原因"] +(2) RecyclerView > [text="不感兴趣"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12700303',
'https://gkd-kit.gitee.io/import/12829866',
],
},
{
preKeys: [1],
key: 2,
matches:
'[text="关闭这条广告的原因"] + [text="确认"][clickable=true]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700210',
},
],
},
{
enable: false,
key: 20,
name: '请求开启推送通知弹窗',
desc: '自动点击“以后再说”',
activityIds:
'com.tencent.qqlive.ona.update.trunk.client.TrunkUpdateActivity',
rules: 'LinearLayout > @[text="以后再说"] + [text="好的"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700139',
},
],
});