forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.sbyd.app.ts
62 lines (61 loc) · 2.05 KB
/
io.sbyd.app.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'io.sbyd.app',
name: '轻松阅',
groups: [
{
key: -1,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
quickFind: true,
rules: [
{
matches: '[text^="跳过"][text.length<10]',
snapshotUrls: 'https://i.gkd.li/import/13261949',
},
],
},
{
key: 0,
name: '弹窗广告',
activityIds: 'io.sbyd.app.ui.book.read.ReadBookActivity',
rules: [
{
key: 1,
matches:
'TextView < LinearLayout[childCount=2] < FrameLayout[childCount=2] > FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://i.gkd.li/import/13274336',
},
{
key: 2,
matches: [
'[text^="立即" || text^="查看" || text^="领取"][text.length=4]', // 立即抢购,立即下载,立即申请,查看详情,领取优惠
'[id="android:id/content"] >2 FrameLayout[childCount=3||childCount=2] > FrameLayout[childCount=5||childCount=6||childCount=8] > FrameLayout[childCount=1] > ImageView[text=null][visibleToUser=true]', // 非广告页面下没有这种节点,不会误触
],
snapshotUrls: [
'https://i.gkd.li/import/13302326',
'https://i.gkd.li/import/13313576',
'https://i.gkd.li/import/13313624',
'https://i.gkd.li/import/13313576',
],
},
{
key: 3,
activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
matches: '[text="反馈"] -2 @View - Image',
snapshotUrls: 'https://i.gkd.li/import/12925052',
},
{
key: 4,
activityIds:
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
matches: '[text="反馈"] -4 @View < View[childCount=7]',
snapshotUrls: 'https://i.gkd.li/import/12925095',
},
],
},
],
});