-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy pathcom.android.browser.ts
66 lines (65 loc) · 1.83 KB
/
com.android.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
import { defineGkdApp } from '@gkd-kit/define';
export default defineGkdApp({
id: 'com.android.browser',
name: '小米浏览器',
groups: [
{
key: 0,
name: '局部广告-关闭[个性推荐开启提示]',
activityIds: ['com.android.browser.BrowserActivity'],
rules: [
{
matches:
'@ImageView[id!=null][clickable=true] -2 [text="个性推荐获得更丰富内容"]',
snapshotUrls: 'https://i.gkd.li/i/12829403',
},
],
},
{
key: 1,
name: '分段广告-主页信息流广告',
fastQuery: true,
activityIds: [
'com.android.browser.BrowserActivity',
'com.android.browser.flow.view.FeedbackDialog',
],
rules: [
{
key: 0,
matches:
'@[id!=null][desc="负反馈"][visibleToUser=true] -n * > * > [text="广告"]',
snapshotUrls: [
'https://i.gkd.li/i/12894221',
'https://i.gkd.li/i/12893649',
],
},
{
preKeys: 0,
key: 1,
matches: '@FrameLayout > ViewGroup > [text="不感兴趣"]',
snapshotUrls: [
'https://i.gkd.li/i/12894234',
'https://i.gkd.li/i/13196059',
],
},
],
},
{
key: 2,
name: '局部广告-搜索结果页底部必应推荐卡片',
desc: '点击关闭',
rules: [
{
activityIds: 'com.android.browser.BrowserActivity',
matches: '[id="bnp_close_icon"][visibleToUser=true]',
exampleUrls:
'https://m.gkd.li/57941037/b0d601cf-6cd1-411c-8555-bd4a8ee3335c',
snapshotUrls: [
'https://i.gkd.li/i/14256707',
'https://i.gkd.li/i/14256761', // visibleToUser=true防止误触此界面
],
},
],
},
],
});