Skip to content

Commit

Permalink
Create com.mihoyo.hyperion.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Loaodoina committed Oct 24, 2024
1 parent 003cc1a commit 03df717
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions src/apps/com.mihoyo.hyperion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import { defineGkdApp } from '@gkd-kit/define';

export default defineGkdApp({
id: 'com.mihoyo.hyperion',
name: '米游社',
groups: [
{
key: 1,
name: '功能类-崩坏三自动签到',
desc: '点击签到-关闭弹窗-返回',
forcedTime: 5000,
activityIds: 'com.mihoyo.hyperion.web2.MiHoYoWebActivity',
rules: [
{
key: 0,
name: '点击签到',
matches: '[clickable=true] + [childCount=3] + [text=""]',
exampleUrls: 'https://e.gkd.li/d9200396-df61-4a3b-8f86-973977c19621',

snapshotUrls: [
'https://i.gkd.li/i/17483577',
'https://i.gkd.li/i/17452726',
],
},
{
preKeys: 0,
key: 1,
name: '关闭签到后的弹窗',
matches: '[text="【崩坏3】每日签到"] >3 TextView[visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/d335b286-9776-4193-a7bb-ad5702241111',
snapshotUrls: [
'https://i.gkd.li/i/17452725',
'https://i.gkd.li/i/14967631', // clickable=false
],
},
{
preKeys: 1,
key: 2,
name: '返回上一个页面',
matches:
'[text="【崩坏3】每日签到"] > View > View[index=0] >3 TextView[clickable=true]',
exampleUrls: 'https://e.gkd.li/62322e24-e53a-4f79-ab4d-411e5c902651',
snapshotUrls: 'https://i.gkd.li/i/17452951',
},
],
},
{
key: 2,
name: '功能类-绝区零自动签到',
desc: '点击签到-关闭弹窗-返回',
forcedTime: 5000,
activityIds: 'com.mihoyo.hyperion.web2.MiHoYoWebActivity',
rules: [
{
key: 0,
name: '点击签到',
matches: '[clickable=true] + [childCount=3] + [text=""]',
exampleUrls: 'https://e.gkd.li/262a5337-fc3f-4201-8cba-a2671abdfa32',
snapshotUrls: 'https://i.gkd.li/i/17483891',
},
{
preKeys: 0,
key: 1,
name: '关闭签到后的弹窗',
matches:
'[text="【绝区零】每日签到"] >3 TextView[visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/fb4e5265-ae7d-47d1-a4c2-4ce5c3c42deb',
snapshotUrls: 'https://i.gkd.li/i/17484071',
},
{
preKeys: 1,
key: 2,
name: '返回上一个页面',
matches:
'[text="【绝区零】每日签到"] > View > View[index=0] >3 TextView[clickable=true]',
exampleUrls: 'https://e.gkd.li/262a5337-fc3f-4201-8cba-a2671abdfa32',
snapshotUrls: 'https://i.gkd.li/i/17483891',
},
],
},
],
});

0 comments on commit 03df717

Please sign in to comment.