2.14.171链接参数说明 脚本使用说明
- 👍8
- ❤️2
- 💩1
2.14.171
https://wiki.metacubex.one/example/yaml$content = ($content ?? $files[0]).replace(`
proxy-providers:
provider1:
<<: *p
url: ""
provider2:
<<: *p
url: ""
`, `
proxy-providers:
my_sub:
<<: *p
url: "http://xxxxxxxxxxxxxxxxx"
`)proxy-providers 的例子:const yaml = ProxyUtils.yaml.safeLoad($content ?? $files[0])
yaml['proxy-providers'] = {
provider: {
url: 'https://sub.com/share/col/name?token=b&target=ClashMeta',
type: 'http',
interval: 86400,
'health-check': {
enable: true,
url: 'https://www.gstatic.com/generate_204',
interval: 300
}
}
}
$content = ProxyUtils.yaml.safeDump(yaml) const yaml = ProxyUtils.yaml.safeLoad($content ?? $files[0])
let clashMetaProxies = await produceArtifact({
type: 'collection',
name: '机场',
platform: 'ClashMeta',
produceType: 'internal'
})
yaml.proxies.unshift(...clashMetaProxies)
$content = ProxyUtils.yaml.safeDump(yaml)
[email protected]:6171,[email protected]:6171
2.14.255 前端 2.14.164User-Agent 下发订阅流量信息...User-AgentencodeURIComponent 编码http://a.com?token=123#flowUserAgent=clash.meta
TYPE 填 GeminiKEY 填 Gemini 的 KeyAPI 留空即可return) ; 可快速执行代码, 如图2(不需要 return)cron 脚本)
2.14.254 前端 2.14.163ability=http-client-policy 的模块, 参数 policy/policy-descriptor)Test = snell, 1.2.3.4, 8000, psk=password, version=4国外加速node)shadowsocksr,example.com,1070,chacha20-ietf,"password",protocol=auth_aes128_sha1,protocol-param=test,obfs=plain,obfs-param=edge.microsoft.com )headers.X-Stash-Selected-Proxy)/headers["X-Surge-Policy"])/opts.policy)request 的 proxy 参数):http://127.0.0.1:8888brew install imagemagickbrew info imagemagick 查看 路径
==> imagemagick: stable 7.1.1-29 (bottled), HEAD
Tools and libraries to manipulate images in many formats
https://imagemagick.org/index.php
/usr/local/Cellar/imagemagick/7.1.1-29_1 (809 files, 29MB) */usr/local/Cellar/imagemagick/7.1.1-29_1cd /tmp/webp 此为你存放 webp 文件的目录/usr/local/Cellar/bin/imagemagick/7.1.1-29_1/mogrify -format gif *.webpbrew install ffmpegfor file in *.gif; do ffmpeg -i "$file" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${file%.gif}.mp4"; done
kill-active-requests.com 手动打断请求(比如在 快捷指令中使用)kill-active-requests.com 手动打断请求. WiFi 断开时自动执行.rule 方便你查看并编写自己的正则匹配 效果图setSelectPolicy getSubPolicys getSubPolicies getPolicy getSelectedPolicy 这几个 API 来回切换策略组来实现打断请求 类似这个$configuration.sendMessage 似乎也可以做到