From ad4474570e08bbf96bf2d85a35b492383e907c65 Mon Sep 17 00:00:00 2001 From: shiquda <104683621+shiquda@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:26:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(APKPure):=20=E5=BC=80=E5=B1=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E3=80=81=E7=83=AD=E9=97=A8=E5=BA=94=E7=94=A8=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E3=80=81=E5=B1=95=E5=BC=80=E5=BA=94=E7=94=A8=E3=80=81?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E8=BD=AF=E4=BB=B6=E5=85=B3=E9=97=AD=20(#2542?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(APKPure): 开屏广告、热门应用推荐、展开应用、广告软件关闭 * feat(APKPure): 规则优化 --------- Co-authored-by: lisonge --- src/apps/com.apkpure.aegon.ts | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/apps/com.apkpure.aegon.ts diff --git a/src/apps/com.apkpure.aegon.ts b/src/apps/com.apkpure.aegon.ts new file mode 100644 index 00000000..6bfa91ac --- /dev/null +++ b/src/apps/com.apkpure.aegon.ts @@ -0,0 +1,78 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.apkpure.aegon', + name: 'APKPure', + groups: [ + { + key: 0, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[text$="跳过"||text^="Skip"]', + snapshotUrls: 'https://i.gkd.li/import/13466685', + }, + ], + }, + { + key: 1, + name: '热门推荐关闭', + desc: '关闭应用推广', + rules: [ + { + activityIds: 'com.apkpure.aegon.main.activity.MainTabActivity', + matches: + '[text="精选必备好应用"] + [name="android.widget.RelativeLayout"] > [name="android.widget.ImageView"]', + snapshotUrls: 'https://i.gkd.li/import/13466647', + }, + ], + }, + { + enable: false, + key: 2, + name: '更新与已安装界面-查看更多', + desc: '在更新界面自动点击查看更多按钮,展开所有应用', + rules: [ + { + activityIds: [ + 'com.apkpure.aegon.main.activity.MainTabActivity', + 'com.apkpure.aegon.main.activity.AppManagerActivity', + 'com.apkpure.aegon.cms.activity.CommonActivity', + 'com.apkpure.aegon.main.activity.AppMoreActivity', + ], + matches: 'ViewGroup > [text="查看更多"]', + snapshotUrls: 'https://i.gkd.li/import/13466329', + }, + ], + }, + { + enable: false, + key: 3, + name: '更新界面-软件推荐', + activityIds: [ + 'com.apkpure.aegon.main.activity.MainTabActivity', + 'com.apkpure.aegon.main.activity.AppManagerActivity', + 'com.apkpure.aegon.cms.activity.CommonActivity', + 'com.apkpure.aegon.main.activity.AppMoreActivity', + ], + quickFind: true, + rules: [ + { + name: '点击三点图标', + key: 0, + matches: '@ImageView - RelativeLayout >3 [text="AD"]', + snapshotUrls: 'https://i.gkd.li/import/13466329', + }, + { + name: '点击关闭', + preKeys: 0, + matches: 'TextView[text="关闭"]', + snapshotUrls: 'https://i.gkd.li/import/13466610', + }, + ], + }, + ], +});