- outbound 参数支持换行
- ⚡4
- ❤️1
2.21.46 sing-box WireGuard 调整并输出为 endpointsif($options){
$options._res = {
headers: {
'profile-update-interval': 24
}
}
} prefer-ipv6 参数需按照 Loon 写法: ip-mode=prefer-ipv6prefer-ipv6 参数需按照 ip-version: ipv6-prefer$options._res = {
headers: {
'profile-update-interval': 24
}
}包含官方/商店版不支持的协议 开关或手动带参数 includeUnsupportedProxy , 若全部是 WireGuard 节点, 可输出为 wireguard://, wg://Shadowrocket 来导出 URI 然后作为输入导入。这样导出的 WireGuard URI 不是标准的 URIJSON52.19.61 脚本内 ProxyUtils 新增 JSON5
https://proxy.api.030101.xyz/https://raw.githubusercontent.com/mihomo-party-org/override-hub/refs/heads/main/yaml/ACL4SSR_Online_Full_WithIcon.yaml
文件 tab, 按图 1 新建 Mihomo 配置文件https://proxy.api.030101.xyz/https://raw.githubusercontent.com/mihomo-party-org/override-hub/refs/heads/main/yaml/ACL4SSR_Online_Full_WithIcon.yamlif($options){
$options._res = {
headers: {
'profile-update-interval': 24
}
}
}
2.16.0 前端 >= 2.14.319https://a.com/download/collection/name?target=ClashMeta, 文件名称为 config.yaml{ url: 'https://a.com/download/collection/name?target=ClashMeta' }https://a.com/api/file/config.yaml?$options=%7B%22url%22%3A%22https%3A%2F%2Fa.com%2Fdownload%2Fcollection%2Fname%3Ftarget%3DClashMeta%22%7Dhttps://a.com/download/collection/namehttps://a.com/api/file/config.yaml?$options=url=https://a.com/download/collection/nameproxy-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),sudo add 将大号加入管理员列表,sudo add,sudo gaddu A 将大号加入权限组 A 中,sudo gaddu A,sudo gaddp A modules.aaa 把 aaa 这个命令权限, 加入权限组 A 中,help aaa, 说明中的 所需权限: modules.aaa 中的部分就是权限.,sudo gaddp A modules, ,sudo gaddp A system, ,sudo gaddp A plugins, ,sudo gaddp A plugins_root/aaa 即可/ 开头触发命令/var/lib/pagermaid/pagermaid/listener.py (如果你安装到了其他目录中, 找对应的文件) 中的 sudo_pattern 部分, 把 ^(/) 改成 ^(;|;) 然后重启服务 systemctl restart pagermaid;aaa 或 ;aaa 了sudo 命令的说明: ,help sudo通知 事件的例子
[Script]
Notification = script-path=notification.js,type=event,event-name=notificationnotification.js 内容// console.log(JSON.stringify($event, null, 2))
const { name, data: { title, subtitle, body } } = $event
if (/达乐美|达美乐/.test(title) && /一等奖/.test(body)) {
$notification.post(`🎉 一等奖!!! ${title}`, subtitle, body, { 'media-url': 'https://www.dominos.com.cn/assets/img/logo.a75b8846.png', sound: 1 })
}
$done()
可能你第一个节点不可用
detour 里面的 groups 第一个节点
因为还在初始化阶段
不可能开始 url test
所以要确保第一个可用
$content = $content.replace(/(https?:\/\/github\.com\/)/g, 'https://你的github加速服务/$1').replace(/"download_detour": "proxy"/g, '"download_detour": "direct"')