#Stash #覆写 执行远程脚本
⚠️ 请勿执行有风险的脚本 不点击面板时也可能会执行!
三种设置方式:
1. 脚本编辑器/BoxJs 执行 $persistentStore.write('http://1.js', 'execute-remote-script-url'); $done({title:'已设置'})
2. 自定义覆写参数 argument:icon=arrowtriangle.right.circle&color=#663399&url=http://1.js
3. Node.js 环境变量 XREAM_EXECUTE_REMOTE_SCRIPT_URL=http://1.js
两种执行方式:
1. 面板 (Tile)
2. 访问 execute-remote-script.com
🔗 覆写地址
傻瓜教程:
先装这个覆写 https://raw.githubusercontent.com/xream/scripts/main/surge/modules/execute-remote-script/execute-remote-script.rewrite.stash.stoverride
然后 脚本编辑器/BoxJs 里执行
$persistentStore.write('http://1.js', 'execute-remote-script-url'); $done({title:'已设置'})
然后
点击面板 (Tile)
或 访问 execute-remote-script.com 时
都会执行 http://1.js
🚀 高级用法
可以在远程脚本里返回设定的数据结构来覆盖本脚本的返回值:
$done({
exec1ute_remote_script: {
title: '面板/通知标题',
content: '面板/通知内容',
icon: 'arrow.clockwise.icloud',
subt: '通知副标题',
opts: { url: 'http://通知跳转.com' },
},
})
💬 查看最新原文
📢 折腾啥 频道
👥 折腾啥 群组
⚠️ 请勿执行有风险的脚本 不点击面板时也可能会执行!
三种设置方式:
1. 脚本编辑器/BoxJs 执行 $persistentStore.write('http://1.js', 'execute-remote-script-url'); $done({title:'已设置'})
2. 自定义覆写参数 argument:icon=arrowtriangle.right.circle&color=#663399&url=http://1.js
3. Node.js 环境变量 XREAM_EXECUTE_REMOTE_SCRIPT_URL=http://1.js
两种执行方式:
1. 面板 (Tile)
2. 访问 execute-remote-script.com
🔗 覆写地址
傻瓜教程:
先装这个覆写 https://raw.githubusercontent.com/xream/scripts/main/surge/modules/execute-remote-script/execute-remote-script.rewrite.stash.stoverride
然后 脚本编辑器/BoxJs 里执行
$persistentStore.write('http://1.js', 'execute-remote-script-url'); $done({title:'已设置'})
然后
点击面板 (Tile)
或 访问 execute-remote-script.com 时
都会执行 http://1.js
🚀 高级用法
可以在远程脚本里返回设定的数据结构来覆盖本脚本的返回值:
$done({
exec1ute_remote_script: {
title: '面板/通知标题',
content: '面板/通知内容',
icon: 'arrow.clockwise.icloud',
subt: '通知副标题',
opts: { url: 'http://通知跳转.com' },
},
})
💬 查看最新原文
📢 折腾啥 频道
👥 折腾啥 群组