mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 08:44:55 +08:00
feat(米游社): 功能类-米游自动签到全家桶 (#449)
This commit is contained in:
@@ -578,6 +578,11 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
|
||||
name: '拼多多',
|
||||
deprecatedKeys: [3, 4, 5, 7, 13, 14, 15, 18],
|
||||
},
|
||||
{
|
||||
id: 'com.mihoyo.hyperion',
|
||||
name: '米游社',
|
||||
deprecatedKeys: [4, 5],
|
||||
},
|
||||
];
|
||||
|
||||
const map: Map<string, number[]> = new Map();
|
||||
|
||||
@@ -41,92 +41,6 @@ export default defineGkdApp({
|
||||
'https://i.gkd.li/i/13721776', // 已打卡
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: '功能类-原神自动签到',
|
||||
desc: '点击签到-关闭弹窗-返回',
|
||||
forcedTime: 5000,
|
||||
activityIds: 'com.mihoyo.hyperion.web2.MiHoYoWebActivity',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
name: '点击签到',
|
||||
matches:
|
||||
'[text="米游社原神每日签到"] >4 View[childCount=11] > @View[childCount=3][visibleToUser=true] > Image[index=0]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/6654679e-58a9-4d6c-85a3-11bd2f82c15e',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14369790', // 签到前
|
||||
'https://i.gkd.li/i/14371469', // 签到后,避免在此页面误触
|
||||
'https://i.gkd.li/i/14967627', // clickable=false
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: 0,
|
||||
key: 1,
|
||||
name: '关闭签到后的弹窗',
|
||||
matches:
|
||||
'[text="米游社原神每日签到"] >3 TextView[index=2][visibleToUser=true]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/b02eca70-f7d3-4169-99d6-9906c534392a',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14371439',
|
||||
},
|
||||
{
|
||||
preKeys: 1,
|
||||
key: 2,
|
||||
name: '返回上一个页面',
|
||||
matches:
|
||||
'[text="米游社原神每日签到"] - View > TextView[clickable=true]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/c232ba4c-d50e-4887-85ab-91739928119e',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14371469',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: '功能类-星穹铁道自动签到',
|
||||
desc: '点击签到-关闭弹窗-返回',
|
||||
forcedTime: 5000,
|
||||
activityIds: 'com.mihoyo.hyperion.web2.MiHoYoWebActivity',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
name: '点击签到',
|
||||
matches:
|
||||
'[text="《崩坏:星穹铁道》签到福利"] >4 View > View + TextView',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/a9f426c4-3184-4525-b283-ad77d6f83d02',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14376296',
|
||||
'https://i.gkd.li/i/14432972',
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: 0,
|
||||
key: 1,
|
||||
name: '关闭签到后的弹窗',
|
||||
matches:
|
||||
'[text="《崩坏:星穹铁道》签到福利"] >3 TextView[visibleToUser=true]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/3babb231-30a7-4891-9c4a-c11946838741',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/14371787',
|
||||
'https://i.gkd.li/i/14967631', // clickable=false
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: 1,
|
||||
key: 2,
|
||||
name: '返回上一个页面',
|
||||
matches:
|
||||
'[text="《崩坏:星穹铁道》签到福利"] > View > View[index=0] >3 TextView[clickable=true]',
|
||||
exampleUrls:
|
||||
'https://m.gkd.li/57941037/d8031907-105b-4d37-8542-b71e854b3b8a',
|
||||
snapshotUrls: 'https://i.gkd.li/i/14371790',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
name: '全屏广告-游戏版本活动',
|
||||
@@ -164,5 +78,81 @@ export default defineGkdApp({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
name: '功能类-米游自动签到全家桶',
|
||||
desc: '包含崩坏3、绝区零、原神、星穹铁道',
|
||||
forcedTime: 10000,
|
||||
activityIds: '.web2.MiHoYoWebActivity',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
name: '点击签到',
|
||||
anyMatches: [
|
||||
'[text$="每日签到"] >4 View[childCount=11] > @View[childCount=3][visibleToUser=true] > Image[index=0][text!=null]',
|
||||
'[text="《崩坏:星穹铁道》签到福利"] >4 View > View + TextView[visibleToUser=true]', // 星穹铁道
|
||||
],
|
||||
exampleUrls: 'https://e.gkd.li/53d22dc7-b368-46c0-85d2-fe132b0832a9',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/17601269', // 崩坏3签到前
|
||||
'https://i.gkd.li/i/17601338', // 绝区零签到前
|
||||
'https://i.gkd.li/i/17611619', // 原神签到前
|
||||
'https://i.gkd.li/i/17611613', // 星穹铁道签到前
|
||||
'https://i.gkd.li/i/14967627', // 签到节点 clickable=false
|
||||
],
|
||||
excludeSnapshotUrls: [
|
||||
'https://i.gkd.li/i/17601295', // 崩坏3签到后
|
||||
'https://i.gkd.li/i/17601347', // 绝区零签到后
|
||||
'https://i.gkd.li/i/17611621', // 原神签到后
|
||||
'https://i.gkd.li/i/17611617', // 星穹铁道签到后
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: [0],
|
||||
key: 1,
|
||||
name: '关闭签到后的弹窗',
|
||||
matches:
|
||||
'@TextView[visibleToUser=true][text=""] - View >2 [text*="签到成功"]',
|
||||
exampleUrls: 'https://e.gkd.li/ef30277a-bd5d-444a-a9d5-ce63406d1269',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/17601273', // 崩坏3
|
||||
'https://i.gkd.li/i/17601340', // 绝区零
|
||||
'https://i.gkd.li/i/17611620', // 原神
|
||||
'https://i.gkd.li/i/17611616', // 星穹铁道
|
||||
'https://i.gkd.li/i/14967631', // 关闭节点 clickable=false
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: [1],
|
||||
key: 2,
|
||||
name: '关闭签到提醒',
|
||||
matches: '[text="不用了"][visibleToUser=true]',
|
||||
exampleUrls: 'https://e.gkd.li/56299b94-01fb-4d83-9796-ec9bd6bbae64',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/17601283', // 崩坏3
|
||||
'https://i.gkd.li/i/17601345', // 绝区零
|
||||
],
|
||||
},
|
||||
{
|
||||
preKeys: [1, 2],
|
||||
key: 3,
|
||||
name: '从签到页返回',
|
||||
excludeMatches: '[text="不用了"][visibleToUser=true]',
|
||||
matches:
|
||||
'[text$="每日签到" || text$="签到福利"] > View >3 View[index=0][childCount=1] > TextView[clickable=true][childCount=0][text=""]',
|
||||
exampleUrls: 'https://e.gkd.li/cc68f623-5dc7-4703-9768-28826c4f16f6',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/i/17601295', // 崩坏3
|
||||
'https://i.gkd.li/i/17601347', // 绝区零
|
||||
'https://i.gkd.li/i/17611621', // 原神
|
||||
'https://i.gkd.li/i/17611617', // 星穹铁道
|
||||
],
|
||||
excludeSnapshotUrls: [
|
||||
'https://i.gkd.li/i/17601283', // 崩坏3
|
||||
'https://i.gkd.li/i/17601345', // 绝区零
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user