From 1a4519a724db8035c220dd737890d0cb96b68dab Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:33:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8D=81=E5=85=AD=E7=95=AA=E6=97=85?= =?UTF-8?q?=E8=A1=8C):=20=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A;=20=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E5=8D=A1=E7=89=87=20(#1838)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 开屏广告 * feat 广告卡片 --- src/apps/com.fan.app.ts | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/apps/com.fan.app.ts diff --git a/src/apps/com.fan.app.ts b/src/apps/com.fan.app.ts new file mode 100644 index 00000000..c05c8bcf --- /dev/null +++ b/src/apps/com.fan.app.ts @@ -0,0 +1,50 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.fan.app', + name: '十六番旅行', + groups: [ + { + key: 0, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + key: 0, + matches: '[id="com.byted.pangle.m:id/tt_splash_skip_btn"]', + snapshotUrls: 'https://i.gkd.li/import/13258011', + }, + { + key: 1, + matches: '@Image < View - View > View > TextView[text="广告"]', + snapshotUrls: 'https://i.gkd.li/import/13258016', + }, + ], + }, + { + key: 1, + name: '广告卡片', + activityIds: 'com.mvvm.view.LazyMapStrategyActivity_TengXun', + rules: [ + { + key: 0, + matches: '[desc^="dislike"] > View', + snapshotUrls: 'https://i.gkd.li/import/13258021', + }, + { + preKeys: 0, + key: 1, + matches: '@LinearLayout > [text="不感兴趣"]', + snapshotUrls: 'https://i.gkd.li/import/13258015', + }, + { + key: 2, + matches: '@Image < View -2 View >2 View > TextView[text="广告"]', + snapshotUrls: 'https://i.gkd.li/import/13258018', + }, + ], + }, + ], +});