From a27c75aad52fdd0403d691741ef1c0b5826d7c00 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Wed, 29 Jan 2025 20:51:47 +0800 Subject: [PATCH] feat: APKPure (#748) --- src/apps/com.apkpure.aegon.ts | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/src/apps/com.apkpure.aegon.ts b/src/apps/com.apkpure.aegon.ts index 116c7775f..5b7ee7976 100644 --- a/src/apps/com.apkpure.aegon.ts +++ b/src/apps/com.apkpure.aegon.ts @@ -81,5 +81,106 @@ export default defineGkdApp({ }, ], }, + { + key: 5, + name: '全屏广告-弹窗广告', + desc: '点击关闭', + matchTime: 10000, + rules: [ + { + fastQuery: true, + matchTime: 10000, + activityIds: '.main.activity.MainTabActivity', + matches: + 'ImageView[childCount=0][text=null] < @LinearLayout[clickable=true][visibleToUser=true] < LinearLayout < LinearLayout < LinearLayout < RelativeLayout < [id="android:id/content"]', + exampleUrls: 'https://e.gkd.li/10d6f26e-cbd1-4159-914b-68c39ff05436', + snapshotUrls: 'https://i.gkd.li/i/18587607', + }, + { + key: 1, + fastQuery: true, + matchTime: 10000, + activityIds: '.main.activity.AppManagerActivity', + matches: + '@ImageView[index=0][childCount=0][clickable=true][visibleToUser=true] < ViewGroup[childCount=2] < [id="android:id/content"]', + exampleUrls: 'https://e.gkd.li/b8201abb-359e-4fc8-82de-0e3784278cd2', + snapshotUrls: 'https://i.gkd.li/i/18587646', + }, + { + key: 2, + activityIds: '.v2.app.detail.AppDetailV2Activity', + matches: + '@ImageView[childCount=0][clickable=true][visibleToUser=true] - [text="正在下载" || text="正在更新"]', + exampleUrls: 'https://e.gkd.li/214effcb-76c5-4cc0-b4c8-40c805331fe8', + snapshotUrls: [ + 'https://i.gkd.li/i/18587702', + 'https://i.gkd.li/i/18587507', + ], + }, + ], + }, + { + key: 6, + name: '局部广告-悬浮广告', + desc: '点击关闭', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + fastQuery: true, + activityIds: '.main.activity.MainTabActivity', + matches: + '@ImageView[childCount=0][clickable=true][visibleToUser=true] <3 RelativeLayout[childCount=4] < FrameLayout <2 FrameLayout < [id="android:id/content"]', + exampleUrls: 'https://e.gkd.li/1ba2de53-b533-47dc-87a4-a701d2bcacd7', + snapshotUrls: 'https://i.gkd.li/i/18587501', + }, + ], + }, + { + key: 7, + name: '局部广告-卡片广告', + desc: '点击关闭', + rules: [ + { + key: 0, + activityIds: '.main.activity.AppManagerActivity', + matches: + '@[desc="closeButton"][visibleToUser=true] - WebView >3 [text="广告"]', + exampleUrls: 'https://e.gkd.li/afc307a6-8271-4776-b7d5-60bd999d0fe5', + snapshotUrls: 'https://i.gkd.li/i/18587514', + }, + { + key: 1, + activityIds: '.main.activity.AppManagerActivity', + matches: '[vid="anythink_myoffer_banner_close"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/ce6a779c-454d-4a71-9d54-1401e615bbf7', + snapshotUrls: 'https://i.gkd.li/i/18587745', + }, + ], + }, + { + key: 8, + name: '局部广告-电报频道推广横幅', + desc: '点击关闭', + rules: [ + { + fastQuery: true, + activityIds: [ + '.main.activity.MainTabActivity', + '.main.activity.AppManagerActivity', + '.v2.app.detail.AppDetailV2Activity', + ], + matches: + '@LinearLayout[clickable=true][visibleToUser=true] - LinearLayout >3 [text="Join"]', + exampleUrls: 'https://e.gkd.li/088ca8e8-5442-4b60-9ce9-0e6dd7d94304', + snapshotUrls: [ + 'https://i.gkd.li/i/18587504', + 'https://i.gkd.li/i/18587515', + 'https://i.gkd.li/i/18587775', + ], + }, + ], + }, ], });