Files
wool_scripts/Loon/plugin/Auto_Join_TF.plugin
2025-09-24 21:50:12 +08:00

37 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!name = 自动[加入/监控]TestFlight
#!desc = 1、自动加入TF使用前先获取账号令牌和填写应用ID[自己手动添加主机名testflight.apple.com]一旦有新的名额即刻加入2、监控TF位置不需要令牌也无需MITM
#!openUrl = https://apps.apple.com/app/id899247664
#!author = 奶思[https://github.com/fmz200], DecoAri[https://github.com/DecoAri], xream[https://github.com/xream]
#!tag = 定时任务
#!system =
#!system_version =
#!loon_version = 3.2.4(787)
#!homepage = https://github.com/fmz200/wool_scripts
#!icon = https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/testflight.png
#!raw-url=https://github.com/fmz200/wool_scripts/raw/main/Loon/plugin/Auto_Join_TF.plugin
#!tg-channel=https://t.me/inaisi
#!input = fmz200_TF_APP_ID
#!date = 2025-09-21 01:17:08
[Argument]
CaptureAccountToken = switch, "false", "true", tag = 捕获账号令牌, desc = 此开关控制插件是否捕获账户令牌
# CaptureAppID = switch, "false", "true", tag = 捕获应用ID, desc = 此开关控制插件是否捕获应用ID
RunTask = switch, "false", "true", tag = 运行自动加入TF, desc = 此开关控制是否启动定时任务
RunMonitor = switch, "true", "false", tag = 运行监控TF位置, desc = 此开关控制是否启动定时任务
TaskCron = input, "0 0/3 * * * ?", tag = 加入TF定时参数, desc = 这里需要输入符合CRON表达式的参数
TaskMonitor = input, "0 * * * * ?", tag = 监控TF定时参数, desc = 这里需要输入符合CRON表达式的参数
[Rule]
DOMAIN, testflight.apple.com, PROXY
[Script]
http-request ^https?:\/\/testflight\.apple\.com\/v3\/accounts\/.*\/apps$ script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 获取账号令牌, enable = {CaptureAccountToken}
# http-request ^https?:\/\/testflight\.apple\.com\/join\/(.*) script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTFKeys.js, tag = 应用ID捕获(可能抓不到), enable = {CaptureAppID}
cron {TaskCron} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTF.js, tag = 自动加入TF, timeout = 600, enable = {RunTask}
cron {TaskMonitor} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoMonitorTF.js, tag = 监控TF位置, timeout = 30, enable = {RunMonitor}
# [MitM]
# hostname = testflight.apple.com