# 第一步
同时配置 HTTP Backend 和 Rewrite
全部更新 > 重启代理
配置后应该通过 http://127.0.0.1:9999 访问下页面后是否正常
# 第二步
# http://boxjs.com
# http://boxjs.net
# http://127.0.0.1:9999
进入 BoxJs > 应用(底栏) > 内置应用 > 偏好设置
# 第三步
在 `HTTP Backend (Quantumult X)` 中填入 HTTP Backend 的地址
如: http://127.0.0.1:9999
# 然后就可以通过`域名`的方式访问 BoxJs 了
# 原理
通过 Rewrite 可以实现域名的形式访问 BoxJs
通过 偏好设置 可以让 BoxJs 的数据请求走 HTTP Backend
# 感谢 https://github.com/chouchoui PR
# 详见 https://github.com/chavyleung/scripts/pull/327# 安装路径:
配置 > 插件 > 插件
# 插件地址:
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin# 安装路径:
配置 > 模块 > 右上角加号
# 模块地址:
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.surge.sgmodule
# 感谢
@JOJOforshaun PR# 安装路径:
配置 > 点击使用中的配置文件 > 编辑纯文本
# 在 [Script] 标签下增加以下内容,如果没有 [Script],可自行增加
# 重写地址:
Rewrite: BoxJs = type=http-request,pattern=https?:\/\/boxjs\.(com|net),script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/box/chavy.boxjs.js, requires-body=true, timeout=120
# 安装路径:
首页 > 覆写 > 安装覆写
# 覆写地址:
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.stash.stoverride