凌晨 🐲 坠机了我才想起来做这个 🐶
- ❤️1
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sub-info/peekabo.jstoken, id 不用说了traffic 默认为 outbound, 即只计算单向出站流量. 单向入站: inbound. 双向: both
https://{你的后端域名}/worker-route/{本worker绑定的路由}?name=服务器名&total=1099511627776&reset_day=1total 为总流量resetDay : 每月流量重置日startDate : 订阅开始日期cycleDays : 订阅重置周期(单位: 天)$options._res.headers 大体跟单条订阅逻辑一致
config: 抓包机场客户端 App 得到一个用来获取实际接口地址的配置文件链接 一般可能为一个 JSON. 可能会有多个不同来源的, 选一个合适的即可user, password : 机场登录的用户名和密码ua: 除了订阅以外的请求的 User-AgentsubUA: 获取订阅的请求的 User-Agentapi 和 auth_data 即可跳过登录流程#cacheKey=xxx (xxx 不要重复, 这是缓存的 key ) 填入 Sub-Store 开启乐观缓存功能 详见 https://t.me/zhetengsha/1417noFlow 不查询流量信息, 反正都焚了...类似这样 #cacheKey=xxx&noFlow#cacheTtl=31536000&headersCacheTtl=31536000 这样缓存为一年 就不会拉取了. 流量查询好像也没啥意义了, 直接设置不查 #cacheTtl=31536000&noFlowfunction operator(proxies, targetPlatform, context) {
if ($options) {
$options._res = {
headers: {
'subscription-userinfo': 'upload=97033729524; download=1357806112914; total=1782411427840; expire=; app_url=https%3A%2F%2Fa.com'
}
}
}
return proxies;
}
[名称 1]
https://translate.google.com/m?sl=zh-tw&tl=zh-cn&hl=zh-cn&q={{proxy.name}}a:<div class="result-container">(.+?)<\/div>{{api.a}}