forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcn.wps.moffice_eng.ts
92 lines (91 loc) · 2.67 KB
/
cn.wps.moffice_eng.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
82
83
84
85
86
87
88
89
90
91
92
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'cn.wps.moffice_eng',
name: 'WPS',
groups: [
{
key: 0,
name: '开屏广告',
activityIds: 'cn.wps.moffice.documentmanager.PreStartActivity',
rules: '[id=`cn.wps.moffice_eng:id/splash_skip`]',
},
{
key: 1,
name: '首页-文档列表广告',
exampleUrls: [
'https://github.com/gkd-kit/subscription/assets/38517192/57787554-0443-4bc0-9f29-1759aae07b9b',
],
activityIds: [
'cn.wps.moffice.main.StartPublicActivity',
'cn.wps.moffice.main.local.HomeRootActivity',
],
rules: [
{
matches: '[text="关闭当前广告"||text="不喜欢此广告"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12505365',
'https://i.gkd.li/import/12882277',
],
},
{
matches: '[id$="/nativeclose"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12505350',
'https://gkd-kit.gitee.io/import/12505286',
],
},
],
},
{
key: 2,
name: '首页-弹窗广告',
activityIds: [
'cn.wps.moffice.main.AfterLoginActivity',
'com.android.packageinstaller.permission.ui.GrantPermissionsActivity',
],
rules: '[id="cn.wps.moffice_eng:id/afterlogin_cancel"]',
snapshotUrls: [
'https://i.gkd.li/import/12882589',
'https://i.gkd.li/import/12882712',
],
},
{
enable: false,
key: 3,
name: '升级提示',
activityIds: [
'com.android.packageinstaller.permission.ui.GrantPermissionsActivity',
'cn.wps.moffice.main.local.HomeRootActivity',
],
rules:
'[id="cn.wps.moffice_eng:id/close_new_func_guide_dialog_imageView"]',
snapshotUrls: 'https://i.gkd.li/import/12882371',
},
{
enable: false,
key: 4,
name: '开启WPS云服务',
desc: '自动点击不开启',
activityIds: [
'cn.wps.moffice.main.cloud.roaming.login.core.QingLoginActivity',
'com.tencent.mm.plugin.webview.ui.tools.SDKOAuthUI',
'com.tencent.mm.ui.base.w',
],
rules: [
{
matches:
'[id="cn.wps.moffice_eng:id/cloud_protocol_dialog_not_start_btn"]',
snapshotUrls: [
'https://i.gkd.li/import/12882536',
'https://i.gkd.li/import/12882610',
'https://i.gkd.li/import/12882678',
],
},
{
matches: '[id="cn.wps.moffice_eng:id/dialog_button_positive"]',
snapshotUrls: 'https://i.gkd.li/import/12882554',
},
],
},
],
});