perf: some rules

This commit is contained in:
AIsouler
2024-12-03 20:22:45 +08:00
parent d6875451c1
commit e574714ef1
72 changed files with 701 additions and 427 deletions

View File

@@ -8,9 +8,16 @@ export default defineGkdApp({
key: 2,
name: '全屏广告-首页弹窗广告',
fastQuery: true,
activityIds: 'com.duokan.reader.DkMainActivity',
rules: '[id="com.duokan.reader:id/store_feed_layer_close"]',
snapshotUrls: 'https://i.gkd.li/i/13248773',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
activityIds: 'com.duokan.reader.DkMainActivity',
matches: '[id="com.duokan.reader:id/store_feed_layer_close"]',
snapshotUrls: 'https://i.gkd.li/i/13248773',
},
],
},
{
key: 3,
@@ -19,8 +26,8 @@ export default defineGkdApp({
{
key: 1,
name: '退出阅读时的推荐弹窗',
activityIds: 'com.duokan.reader.DkMainActivity',
fastQuery: true,
activityIds: 'com.duokan.reader.DkMainActivity',
matches:
'[id="com.duokan.reader:id/reading_stop_read_recommend_stop"]',
snapshotUrls: 'https://i.gkd.li/i/13413412',
@@ -31,34 +38,37 @@ export default defineGkdApp({
key: 4,
name: '局部广告-小说页广告',
desc: '小说页面下方出现的条形广告',
fastQuery: true,
activityIds: 'com.duokan.reader.DkMainActivity',
rules:
'@ImageView < FrameLayout[id="com.duokan.reader:id/reading__app_ad_view__close"]',
snapshotUrls: 'https://i.gkd.li/i/13497902',
rules: [
{
fastQuery: true,
activityIds: 'com.duokan.reader.DkMainActivity',
matches:
'@ImageView < FrameLayout[id="com.duokan.reader:id/reading__app_ad_view__close"]',
snapshotUrls: 'https://i.gkd.li/i/13497902',
},
],
},
{
key: 5,
name: '分段广告-小说页全屏卡片广告',
desc: '点击关闭确定按钮',
desc: '点击关闭-点击确定按钮',
fastQuery: true,
activityIds: 'com.duokan.reader.DkMainActivity',
rules: [
{
key: 0,
activityIds: 'com.duokan.reader.DkMainActivity',
matches:
'@TextView[id="com.duokan.reader:id/reading__app_ad_view__close"][text="广告"]',
snapshotUrls: 'https://i.gkd.li/i/13498048',
},
{
preKeys: [0],
key: 1,
matches:
'@TextView[id="com.duokan.reader:id/ad__feedback_close_dialog_button"][text="知道了"]',
snapshotUrls: 'https://i.gkd.li/i/13497990',
},
],
snapshotUrls: [
'https://i.gkd.li/i/13498048',
'https://i.gkd.li/i/13497990',
],
},
{
key: 6,
@@ -70,6 +80,7 @@ export default defineGkdApp({
resetMatch: 'app',
rules: [
{
activityIds: '.DkMainActivity',
matches:
'[id="com.duokan.reader:id/general__common_dialog_view__button_frame"] >2 [text="以后再说"]',
snapshotUrls: 'https://i.gkd.li/i/14007573',