mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
32 lines
1.8 KiB
Plaintext
32 lines
1.8 KiB
Plaintext
#!name = 自动加入TestFlight
|
||
#!desc = 使用前先获取账号令牌和应用ID,一旦有新的名额即刻加入
|
||
#!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-group=https://t.me/lanjieguanggao
|
||
#!input = fmz200_TF_APP_ID
|
||
#!date = 2025-06-14 15:17:08
|
||
|
||
[Argument]
|
||
CaptureAccountToken = switch, "false", "true", tag = 捕获账号令牌, desc = 此开关控制插件是否捕获账户令牌
|
||
CaptureAppID = switch, "false", "true", tag = 捕获应用ID, desc = 此开关控制插件是否捕获应用ID
|
||
TimingParameters = input, "0 0/3 * * * ?", tag = 定时参数, 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 {TimingParameters} script-path = https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/TestFlight/AutoJoinTF.js, tag = 自动加入TF, timeout = 180
|
||
|
||
[MitM]
|
||
hostname = testflight.apple.com |