forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.google.android.gm.ts
58 lines (57 loc) · 1.8 KB
/
com.google.android.gm.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.google.android.gm',
name: 'Gmail',
groups: [
{
enable: false,
key: 2,
name: '信息流广告',
rules: [
{
quickFind: true,
key: -1,
name: '点击广告扩展-1',
matches:
'[id="com.google.android.gm:id/button_chip_ad_teaser_info_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13255698',
},
{
quickFind: true,
key: 0,
name: '点击广告扩展-2',
matches: '[id="com.google.android.gm:id/basic_ad_teaser_info_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13255698',
},
{
preKeys: [-1, 0],
key: 1,
name: '广告中心-点击屏蔽',
matches: 'Button[text="屏蔽此广告"||text^="Block"]', // TODO quickFind 优化改进 Button[text="屏蔽此广告"] <<n [id="com.google.android.gm:id/my_ad_center_dialog"]
snapshotUrls: [
'https://i.gkd.li/import/13255700',
'https://i.gkd.li/import/13724271',
],
},
{
preKeys: 1,
key: 2,
name: '点击继续确认屏蔽',
matches: 'Button[text="继续"||text="Continue"]', // TODO Button[text="继续"] <<n [id="com.google.android.gm:id/design_bottom_sheet"]
snapshotUrls: [
'https://i.gkd.li/import/13255701',
'https://i.gkd.li/import/13724287',
],
},
{
preKeys: 2,
key: 3,
quickFind: true,
name: '关闭弹窗',
matches: '[id="com.google.android.gm:id/my_ad_center_close_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13263279',
},
],
},
],
});