Files
AIsouler-GKD_subscription/src/apps/com.yunxiang.wuyu.ts
jiuqianyuan bd5bfcc4c3 feat(特狗APP): 开屏广告、公告弹窗、广告弹窗 (#2484)
* feat(特狗APP):开屏广告、公告弹窗、广告弹窗

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

close #2477
2023-11-26 21:05:58 +08:00

58 lines
1.4 KiB
TypeScript

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',
},
],
},
],
});