Channel: Cool Scripts
2.14.285
WireGuard
URI 输入和输出输入兼容
wireguard://
和 wg://
输出兼容
wireguard://
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.288
使用默认配置时, 如截图所示, 展示三次请求延迟
可用脚本设置节点字段
_monitors
可参考默认配置:
$server._monitors = [
{
name: 'Cloudflare',
url: 'http://cp.cloudflare.com/generate_204',
method: 'HEAD',
number: 3,
timeout: 2000,
},
{
name: 'Google',
url: 'http://www.google.com/generate_204',
method: 'HEAD',
number: 3,
timeout: 2000,
},
]
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
如录屏演示, 方便处理多个操作
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.222
后端 2.14.293
SOCKS5
/SOCKS5-TLS
VLESS
不再需要 设置
包含官方/商店版不支持的协议
includeUnsupportedProxy
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.229
后端 2.14.298
仅支持 Sub-Store 单条订阅数据
订阅管理
页面,在某个 单条订阅
左滑/右滑的更多项中,点击导出图标按钮导出你配置好的完整流程(例如: 一个完善的测落地, 重命名, 筛选的流程)
其他用户可一键导入
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.301
includeUnsupportedProxy
, 若全部是 WireGuard
节点, 可输出为 关于
WireGuard
输入怎么写 请点击查看链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.307
如果一定要用资源解析器, 请手动选择
V2Ray
输出, 将形如 ?target=V2Ray
的链接填入 QX/
以兼容部分客户端ProxyUtils
中增加 Gist
类; 补充 demo.js
中的示例链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.309
Trojan
, VMess
, VLESS
传输层 httpupgrade
暂不支持
Shadowsocks
v2ray-plugin
Node.js
版支持使用 MaxMind
GeoLite2
数据库进行本地 IP 查询1. 使用 环境变量
SUB_STORE_MMDB_COUNTRY_PATH
和 SUB_STORE_MMDB_ASN_PATH
2. 在使用脚本时, 传入
mmdb_asn_path
和 mmdb_country_path
分别为
MaxMind
GeoLite2
Country
和 GeoLite2
ASN
数据库 的路径链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.311
前端 2.14.233
自定义缓存
调整为 乐观缓存
例: 原订阅中的远程订阅地址为
https://a.com?token=123
在结尾加上
#cacheKey=nexitally
即此时 Sub-Store 订阅中的远程订阅地址为
https://a.com?token=123#cacheKey=nexitally
每次使用 Sub-Store 订阅时, 将先返回该缓存的值, 并进行请求尝试更新缓存.
你可自行管理 Key 为
sub-store-cached-custom-nexitally
的持久化数据远程订阅链接
和 本地订阅内容
的使用说明参数太多 有点乱 先这样吧(
PR
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.313
前端 2.14.234
修改的操作名称持久化到 gist 配置
感谢 liangyi 的 PR!
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.316
User-Agent
便于大致判断拉取订阅的来源
server-cert-fingerprint
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.319
定时处理订阅
功能, 避免 App 内拉取超时大致逻辑:
定时处理订阅, 进行脚本缓存
在缓存有效期内, Surge 等 App 拉取订阅时就不会超时了
只有 App 版需要折腾, 其他平台完全可以用你能想到的一切方法 定时拉取订阅
▎使用
其他 App 原理一致, 不要问怎么添加, 自己看对应 App 的语法
添加一个定时任务:
timeout
: 脚本超时时长, 按需调整sub
: 自定义需定时处理的单条订阅名, 多个用 ,
连接col
: 自定义需定时处理的组合订阅名, 多个用 ,
连接注意: 是
名称 name
不是 显示名称 displayName
名如果名称需要
encodeURIComponent
编码, 请编码后再用 ,
连接顺序: 并发执行单条订阅, 然后并发执行组合订阅
Produce=type=cron,cronexp="50 */6 * * *",timeout=120,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js,argument="sub=sub1,sub2&col=col1,col2"
▎关于缓存时长
当使用
sub-store-csr-expiration-time
的值来自定义默认缓存时长, 默认为 172800000 (48 * 3600 * 1000, 即 48 小时)其他平台同理, 持久化缓存数据在 JSON 里
Base64
输入支持 hy2://
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.323
前端 2.14.237
原参数目前仍保留
若有脚本需要使用这些参数请尽快修改:
_subName
, _collectionName
, _resolved
, _no-resolve
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.326
前端 2.14.238
includeUnsupportedProxy
时, 去除 HTTP 传输层某些机场的 VMess 使用了 Surge 不支持的 HTTP 传输层
去除 HTTP 传输层后不一定能通 由服务端配置确定
用法: 1. 如图, 在同步配置中打开开关
2. 复制出你的 Sub-Store 订阅后, 加上参数. 例如
https://sub.store/download/111?target=Surge&includeUnsupportedProxy=true
HTTP
时, path
默认为 /
proxy
, timeout
(默认 15 秒)链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.330
前端 2.14.241
flowUrl
, 使用传入链接的响应体作为订阅流量信息使用示例:
https://a.com?token=abc#flowUrl=https://b.com/subinfo.txt
使用场景: 便于对接其他来源的流量数据
乐观缓存的说明
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.332
前端 2.14.242
感谢 @zoesudo 的 PR!
感谢 @ccc63 的图标
ProxyUtils.removeFlag
去除已有旗帜 emoji乐观缓存的说明
链接参数说明 脚本使用说明
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
HTML Embed Code: