From ac9a5a2cd80b5aa6ac35b0ce8aef234ab24ab17c Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Thu, 21 Sep 2023 23:54:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BA=AC=E4=B8=9C=E8=AF=BB=E4=B9=A6):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A,=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=BC=B9=E7=AA=97,=20=E9=A6=96=E9=A1=B5=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=20(#258)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(京东读书) * 增加 activityId --- src/apps/com.jd.app.reader.ts | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/apps/com.jd.app.reader.ts diff --git a/src/apps/com.jd.app.reader.ts b/src/apps/com.jd.app.reader.ts new file mode 100644 index 00000000..b6fdb59b --- /dev/null +++ b/src/apps/com.jd.app.reader.ts @@ -0,0 +1,54 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.jd.app.reader', + name: '京东读书', + groups: [ + { + key: 0, + name: '开屏广告', + activityIds: [ + 'com.jingdong.app.reader.logo.JdLogoActivity', + 'com.miui.home.launcher.Launcher', + ], + rules: [ + { + matches: '[id="com.jd.app.reader:id/count_down_time"][text^="跳过"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12686559', + 'https://gkd-kit.gitee.io/import/12686589', // activityId: 'com.miui.home.launcher.Launcher' + ], + }, + ], + }, + { + key: 1, + name: '更新弹窗', + activityIds: ['com.jingdong.app.reader.logo.JdLogoActivity'], + rules: [ + { + matches: '@[text="下次再说"] +(2) [text="立即更新"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12686632'], + }, + ], + }, + { + key: 2, + name: '首页弹窗广告', + activityIds: [ + 'com.jingdong.app.reader.main.ui.JdMainActivity', + 'com.miui.home.launcher.Launcher', + ], + rules: [ + { + matches: + '[id="com.jd.app.reader:id/mCardView"] + [id="com.jd.app.reader:id/mCloseBtn"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12686577', + 'https://gkd-kit.gitee.io/import/12686664', // activityId: 'com.miui.home.launcher.Launcher' + ], + }, + ], + }, + ], +});