From bd5bfcc4c3953a8fbd61aee0996ddd3078829648 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:05:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=89=B9=E7=8B=97APP):=20=E5=BC=80?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=E3=80=81=E5=85=AC=E5=91=8A=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E3=80=81=E5=B9=BF=E5=91=8A=E5=BC=B9=E7=AA=97=20(#2484?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(特狗APP):开屏广告、公告弹窗、广告弹窗 * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] close #2477 --- src/apps/com.yunxiang.wuyu.ts | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/apps/com.yunxiang.wuyu.ts diff --git a/src/apps/com.yunxiang.wuyu.ts b/src/apps/com.yunxiang.wuyu.ts new file mode 100644 index 00000000..64ae4b26 --- /dev/null +++ b/src/apps/com.yunxiang.wuyu.ts @@ -0,0 +1,57 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.yunxiang.wuyu', + name: '特狗APP', + groups: [ + { + key: 0, + name: '开屏广告', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[text*="跳过"][text.length<=10]', + snapshotUrls: 'https://i.gkd.li/import/13455619', + }, + ], + }, + { + key: 2, + name: '公告弹窗', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + activityIds: 'com.yunxiang.wuyu.MainActivity', + rules: '[desc^="人生嘛"] +4 ImageView[clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13455634', + }, + { + key: 3, + name: '广告弹窗', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + activityIds: 'com.yunxiang.wuyu.MainActivity', + rules: [ + { + name: '【x】型', + matches: + 'ImageView < @ViewGroup[clickable=true] < ViewGroup +n ViewGroup [text="广告"]', + snapshotUrls: 'https://i.gkd.li/import/13455628', + }, + { + name: '【跳过】型', + matches: [ + 'TextView[text="广告"]', + '@ViewGroup > TextView[text="跳过"]', + ], + snapshotUrls: 'https://i.gkd.li/import/13455629', + }, + ], + }, + ], +});