From 7da9e409845f2cdd058c4769000c399d677d96d8 Mon Sep 17 00:00:00 2001 From: walklty <47232102+walklty@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:44:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8B=B7=E8=B4=9D=E6=BC=AB=E7=94=BB):=20?= =?UTF-8?q?=E6=95=B0=E4=B8=AA=E5=BC=B9=E7=AA=97=E5=B9=BF=E5=91=8A,=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=A1=AE=E8=AE=A4,=20=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=97=B6=E9=97=B4=E5=BB=B6=E9=95=BF=20(#2550?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update com.copymanga.app.ts * Update com.copymanga.app.ts * Update com.copymanga.app.ts --- src/apps/com.copymanga.app.ts | 122 +++++++++++++++++++++++++--------- 1 file changed, 91 insertions(+), 31 deletions(-) diff --git a/src/apps/com.copymanga.app.ts b/src/apps/com.copymanga.app.ts index f5a024fa..93b2049c 100644 --- a/src/apps/com.copymanga.app.ts +++ b/src/apps/com.copymanga.app.ts @@ -7,14 +7,13 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - matchLauncher: true, - activityIds: [ - 'com.copymanga.app.MainActivity', - 'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity', - ], + matchTime: 30000, + actionMaximum: 1, + resetMatch: 'app', + quickFind: true, rules: [ { - matches: '[text *= "跳过" && text.length<6]', + matches: '[text^="跳过"][text.length<6]', snapshotUrls: [ 'https://i.gkd.li/import/12504489', 'https://i.gkd.li/import/12504507', @@ -28,53 +27,88 @@ export default defineAppConfig({ key: 1, name: '内部弹窗广告', matchLauncher: true, - activityIds: ['com.copymanga.app.MainActivity'], - delay: 500, + activityIds: [ + 'com.copymanga.app.MainActivity', + 'com.reaper.flutter.reaper_flutter_plugin.activity.ReaperSplashActivity', + ], + delay: 400, rules: [ { + key: 1, activityIds: 'com.kwad.components.ad.interstitial', - matches: 'TextView[text="跳过"]', - snapshotUrls: 'https://i.gkd.li/import/12504486', - }, - { - activityIds: 'com.kwad.components.ad.interstitial', - matches: 'ViewGroup[clickable=true] > ImageView', - snapshotUrls: 'https://i.gkd.li/import/12504488', - }, - { - matches: - 'ImageView < FrameLayout < FrameLayout +2 FrameLayout > ImageView', - snapshotUrls: 'https://i.gkd.li/import/12504501', - }, - { - matches: 'ImageView + FrameLayout + FrameLayout > ImageView', + matches: '@ViewGroup[clickable=true][visibleToUser=true] > ImageView', snapshotUrls: [ - 'https://i.gkd.li/import/12504520', - 'https://i.gkd.li/import/12661019', + 'https://i.gkd.li/import/12504486', + 'https://i.gkd.li/import/12504488', ], }, { - matches: - '@ImageView < FrameLayout[childCount=1] +2 FrameLayout[childCount=2] >2 TextView[text$="看看"][text^="去"]', - snapshotUrls: 'https://i.gkd.li/import/12504501', + key: 2, + matches: [ + '[text^="立即" || text^="领取" || text^="了解" || text*="看"]', //软件正常元素都用的des,只有广告用text + '[id="android:id/content"] >2 FrameLayout[childCount=4|| childCount=3||childCount=2] > FrameLayout[childCount=5||childCount=6||childCount=8] > FrameLayout[childCount=1] > [name="android.view.View" || name="android.widget.ImageView"][text=null][visibleToUser=true]', + ], + snapshotUrls: [ + 'https://i.gkd.li/import/12504520', + 'https://i.gkd.li/import/12661019', + 'https://i.gkd.li/import/13193877', + 'https://i.gkd.li/import/12892156', + 'https://i.gkd.li/import/12504501', + 'https://i.gkd.li/import/13246786', + 'https://i.gkd.li/import/13259082', // text^="领取" + 'https://i.gkd.li/import/13372542', // View + ], }, { - matches: - 'TextView[text.length=4] < FrameLayout[childCount>=1] <2 FrameLayout[childCount>=2] -2 FrameLayout > ImageView', - snapshotUrls: 'https://i.gkd.li/import/12892156', //最后是ImageView否则和io/import/12504501误触 + key: 3, + matches: [ + '[text^="京东"]', + '[text^="扭"]', + 'ImageView[index=0][depth=9]', + ], + snapshotUrls: [ + 'https://i.gkd.li/import/13233178', + 'https://i.gkd.li/import/13259085', + ], }, { + key: 4, activityIds: 'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity', matches: '[text="反馈"] -2 @View - Image', snapshotUrls: 'https://i.gkd.li/import/12925052', }, { + key: 5, 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', }, + { + key: 6, + matches: + '[id="com.copymanga.app:id/video_view"] + [id="com.copymanga.app:id/iv_close"]', + snapshotUrls: 'https://i.gkd.li/import/13332719', + }, + { + key: 7, + // desc: '二步跳过广告_步骤1', + quickFind: true, + matches: '[text="跳过"]', + snapshotUrls: [ + 'https://i.gkd.li/import/13344156', // step1 + ], + }, + { + key: 8, + preKeys: [7], + // desc: '二步跳过广告_步骤2', + matches: 'ImageView < ViewGroup[clickable=true][childCount=1]', + snapshotUrls: [ + 'https://i.gkd.li/import/13344156', // step2 + ], + }, ], }, { @@ -109,5 +143,31 @@ export default defineAppConfig({ }, ], }, + { + key: 4, + name: '自动确认线路', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[desc="进入拷贝漫画"]', + snapshotUrls: 'https://i.gkd.li/import/13233179', + }, + ], + }, + { + key: 5, + name: '关闭提示', + matchTime: 30000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[desc="系统提示"] +n [desc="确定"]', + snapshotUrls: 'https://i.gkd.li/import/13233180', + }, + ], + }, ], });