forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.tencent.mtt.ts
81 lines (80 loc) · 2.32 KB
/
com.tencent.mtt.ts
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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mtt',
name: 'QQ浏览器',
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches: '@LinearLayout[clickable=true] > TextView[text="跳过"]',
snapshotUrls: 'https://i.gkd.li/import/12472630',
},
'@View[id=null] + ImageView + FrameLayout TextView[text=`向上滑动或点击查看`]', // 缺少快照
],
},
{
enable: false,
key: 10,
name: '小说阅读页面-卡片广告',
activityIds: 'com.tencent.mtt.MainActivity',
rules: [
{
actionCd: 3000,
key: 0,
name: '点击广告按钮',
excludeMatches: '[desc="屏蔽此广告"||desc="不感兴趣"]',
matches:
'@ViewGroup[clickable=true][visibleToUser=true] > ViewGroup > [desc="广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12907446',
'https://i.gkd.li/import/12907445', // 限定 visibleToUser=true,防止在节点不可见时触发规则
],
},
{
preKeys: 0,
key: 1,
name: '点击[屏蔽此广告]',
matches: '@ViewGroup > [desc="屏蔽此广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12907654',
'https://i.gkd.li/import/12907651',
],
},
{
preKeys: 1,
key: 2,
name: '点击[不感兴趣]',
matches: '@ViewGroup > [desc="不感兴趣"]',
snapshotUrls: [
'https://i.gkd.li/import/12907655',
'https://i.gkd.li/import/12907653',
],
},
],
},
{
key: 11,
name: '小说阅读页面-视频广告',
activityIds: 'com.qq.e.tg.RewardvideoPortraitADActivity',
rules: [
{
key: 0,
matches: '[text="腾讯广告"] >n [id^="button_close"]',
snapshotUrls: 'https://i.gkd.li/import/12909822',
},
{
preKeys: 0,
key: 1,
matches: '[id="com.tencent.mtt:id/reward_dialog_close"]',
snapshotUrls: 'https://i.gkd.li/import/12908955',
},
],
},
],
});