From 47d2f6af9056f9e91e43927f55dbd0e331493395 Mon Sep 17 00:00:00 2001 From: Crezinx Date: Sun, 26 Nov 2023 22:12:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(Blued=E6=9E=81=E9=80=9F=E7=89=88):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E3=80=81=E9=A1=B5=E9=9D=A2=E5=86=85=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=B9=BF=E5=91=8A=20(#2522)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(Blued极速版): 开屏、页面内卡片广告 * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] --- src/apps/com.danlan.xiaolan.ts | 63 ++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/apps/com.danlan.xiaolan.ts diff --git a/src/apps/com.danlan.xiaolan.ts b/src/apps/com.danlan.xiaolan.ts new file mode 100644 index 00000000..a7657ef0 --- /dev/null +++ b/src/apps/com.danlan.xiaolan.ts @@ -0,0 +1,63 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.danlan.xiaolan', + name: 'Blued极速版', + groups: [ + { + key: 0, + name: '开屏广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + activityIds: 'com.blued.android.core.ui.TerminalActivity', + rules: [ + { + matches: + '[id="com.danlan.xiaolan:id/tt_splash_skip_btn"][clickable=true]', + snapshotUrls: ['https://i.gkd.li/import/13421629'], + }, + ], + }, + { + key: 1, + quickFind: true, + name: '附近的人-广告卡片', + activityIds: 'com.soft.blued.ui.home.HomeActivity', + rules: [ + { + key: 0, + matches: + '[id="com.danlan.xiaolan:id/ad_container"] >n [id="com.danlan.xiaolan:id/img_close"][clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13421613', + }, + { + preKeys: [0], + key: 1, + matches: '@LinearLayout > [text="不感兴趣"]', + snapshotUrls: 'https://i.gkd.li/import/13421622', + }, + ], + }, + { + key: 3, + quickFind: true, + name: '来访-广告卡片', + activityIds: 'com.blued.android.core.ui.TerminalActivity', + rules: [ + { + key: 0, + matches: '[id="com.danlan.xiaolan:id/img_close"][clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13421923', + }, + { + preKeys: [0], + key: 1, + matches: '@LinearLayout > [text="不感兴趣"]', + snapshotUrls: 'https://i.gkd.li/import/13422170', + }, + ], + }, + ], +});