forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.quark.browser.ts
75 lines (74 loc) · 2.03 KB
/
com.quark.browser.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.quark.browser',
name: '夸克浏览器',
groups: [
{
key: 0,
name: '小说阅读页面底部广告',
activityIds: 'com.ucpro.BrowserActivity',
rules: [
'[id=`com.quark.browser:id/tv_close_ad`][text=`关闭广告`]',
'[id=`com.quark.browser:id/ad_close_layout_container`]',
],
},
{
name: '功能类-同时删除源文件',
key: 1,
enable: false,
desc: '删文件时自动勾选删除源文件',
rules: [
{
action: 'clickCenter',
matches: ['[text="同时删除源文件"]'],
actionDelay: 350,
quickFind: true,
actionMaximum: 1,
matchDelay: 200,
resetMatch: 'activity',
activityIds: ['com.ucpro.BrowserActivity'],
},
],
},
{
enable: false,
key: 2,
name: '设置默认浏览器提示',
desc: '点击取消',
quickFind: true,
actionMaximum: 1,
activityIds: 'com.ucpro.BrowserActivity',
rules: '@Button[text="取消"] + Button[text="去设置"]',
snapshotUrls: 'https://i.gkd.li/import/13249469',
},
{
key: 3,
name: '更新提示',
desc: '点击取消',
quickFind: true,
actionMaximum: 1,
activityIds: 'com.ucpro.BrowserActivity',
rules: [
{
key: 0,
matches: '@Button[text="取消"] + Button[text="更新"]',
snapshotUrls: 'https://i.gkd.li/import/13292512',
},
{
key: 1,
matches: '@Button[text="取消"] + Button[text="确定"]',
snapshotUrls: 'https://i.gkd.li/import/13455360',
},
],
},
{
key: 4,
name: '弹窗广告',
quickFind: true,
actionMaximum: 1,
activityIds: 'com.ucpro.BrowserActivity',
rules: 'ImageView[id="com.quark.browser:id/close_img"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13292571',
},
],
});