Skip to content

Commit 4d384d1

Browse files
committed
perf: 番茄免费小说 (#769)
1 parent 276572d commit 4d384d1

File tree

1 file changed

+38
-30
lines changed

1 file changed

+38
-30
lines changed

src/apps/com.dragon.read.ts

+38-30
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,20 @@ export default defineGkdApp({
1717
key: 1,
1818
fastQuery: true,
1919
matches:
20-
'@ImageView[childCount=0][clickable=true][visibleToUser=true] - LinearLayout >(2,3) [text="广告" || text="立享优惠"]',
20+
'@ImageView[childCount=0][clickable=true][visibleToUser=true] - LinearLayout >(2,3) [text="广告" || text="立享优惠" || text*="查看"][text.length<5]',
2121
snapshotUrls: [
2222
'https://i.gkd.li/i/12908734',
23+
'https://i.gkd.li/i/14540281',
2324
'https://i.gkd.li/i/18138903',
2425
],
2526
},
2627
{
2728
key: 2,
28-
matches:
29-
'HorizontalAndVerticalScrollView > FrameLayout[childCount=14] > [index=9] >5 ImageView[clickable=true]',
30-
exampleUrls:
31-
'https://m.gkd.li/57941037/d2f7c62c-be88-4668-b276-68bb53edfaad',
32-
snapshotUrls: [
33-
'https://i.gkd.li/i/14193836',
34-
'https://i.gkd.li/i/13520314',
35-
'https://i.gkd.li/i/12908734',
36-
],
29+
fastQuery: true,
30+
activityIds: '.reader.ui.ReaderActivity',
31+
matches: '[id="com.dragon.read:id/close_button"][visibleToUser=true]',
32+
exampleUrls: 'https://e.gkd.li/3de0d5d9-0c02-4fe7-b5e8-b9fdb6688f8e',
33+
snapshotUrls: 'https://i.gkd.li/i/13520314',
3734
},
3835
{
3936
key: 3,
@@ -55,6 +52,18 @@ export default defineGkdApp({
5552
'https://i.gkd.li/i/14810480',
5653
],
5754
},
55+
{
56+
key: 5,
57+
fastQuery: true,
58+
activityIds: '.reader.ui.ReaderActivity',
59+
matches:
60+
'@[clickable=true] >(1,2) [text="继续阅读下一页"][visibleToUser=true]',
61+
exampleUrls: 'https://e.gkd.li/b571222b-4ac1-4ba8-9a2c-4439c531d6e4',
62+
snapshotUrls: [
63+
'https://i.gkd.li/i/13674556',
64+
'https://i.gkd.li/i/13843155',
65+
],
66+
},
5867
],
5968
},
6069
{
@@ -78,17 +87,18 @@ export default defineGkdApp({
7887
{
7988
key: 2,
8089
name: '局部广告-首页右侧悬浮广告',
81-
activityIds: [
82-
'com.dragon.read.pages.main.MainFragmentActivity',
83-
'com.dragon.read.ad.openingscreenad.OpeningScreenADActivity',
84-
],
8590
rules: [
8691
{
92+
fastQuery: true,
93+
activityIds: [
94+
'com.dragon.read.pages.main.MainFragmentActivity',
95+
'com.dragon.read.ad.openingscreenad.OpeningScreenADActivity',
96+
],
8797
matches:
88-
'[id="android:id/content"] > FrameLayout[childCount=1] > RelativeLayout[childCount=1] >2 ImageView[id!=null][clickable=true]',
98+
'@ImageView[clickable=true][childCount=0][index=0][visibleToUser=true] < [childCount=3] < RelativeLayout < FrameLayout <2 [id="android:id/content"][childCount=3]',
8999
snapshotUrls: [
90-
'https://i.gkd.li/i/12716506', //relativeLayout和ImageView之间是RelativeLayoutRelativeLayout
91-
'https://i.gkd.li/i/13318796', //relativeLayout和ImageView之间是ViewGroup
100+
'https://i.gkd.li/i/12716506',
101+
'https://i.gkd.li/i/13318796',
92102
],
93103
},
94104
],
@@ -157,16 +167,6 @@ export default defineGkdApp({
157167
fastQuery: true,
158168
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
159169
rules: [
160-
{
161-
key: 2,
162-
name: '点击[继续阅读下一页]',
163-
order: -1,
164-
matches: '[text="继续阅读下一页"]',
165-
snapshotUrls: [
166-
'https://i.gkd.li/i/13674556',
167-
'https://i.gkd.li/i/13843155',
168-
],
169-
},
170170
{
171171
key: 0,
172172
name: '点击[反馈]按钮',
@@ -177,15 +177,23 @@ export default defineGkdApp({
177177
],
178178
},
179179
{
180-
preKeys: 0,
180+
key: 3,
181+
matches:
182+
'@ImageView[clickable=true][childCount=0][visibleToUser=true] < FrameLayout - LinearLayout >2 [text="广告"]',
183+
exampleUrls: 'https://e.gkd.li/c172db67-a489-488b-a5f5-35aa9657c444',
184+
snapshotUrls: 'https://i.gkd.li/i/18724040',
185+
},
186+
{
187+
preKeys: [0, 3],
181188
key: 1,
182-
name: '点击[不感兴趣]',
183-
matches: '[text="不感兴趣"]',
189+
name: '点击[不感兴趣]/[关闭此广告]',
190+
matches: '[text="不感兴趣" || text="关闭此广告"]',
184191
snapshotUrls: [
185192
'https://i.gkd.li/i/13520219',
186193
'https://i.gkd.li/i/13674550',
187194
'https://i.gkd.li/i/13816454',
188195
'https://i.gkd.li/i/14913207',
196+
'https://i.gkd.li/i/18724041',
189197
],
190198
},
191199
],

0 commit comments

Comments
 (0)