Skip to content

Commit 4fb4121

Browse files
committed
更新[BoxJs]: 新增抹掉数据页 (故障时可单独访问), 迁移内置应用至订阅
1 parent 325efad commit 4fb4121

7 files changed

Lines changed: 406 additions & 196 deletions

File tree

‎QuantumultX.box.local.conf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hostname = 8.8.8.8
22

33
^https://8.8.8.8/api url script-request-body chavyleung/chavy.box.js
4-
^https://8.8.8.8/(home|sub|my|app|log)($|\/) url script-response-body chavyleung/chavy.box.js
4+
^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/) url script-response-body chavyleung/chavy.box.js

‎QuantumultX.box.remote.conf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hostname = 8.8.8.8
22

33
^https://8.8.8.8/api url script-request-body https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js
4-
^https://8.8.8.8/(home|sub|my|app|log)($|\/) url script-response-body https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js
4+
^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/) url script-response-body https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js

‎box/chavy.boxjs.json‎

Lines changed: 196 additions & 76 deletions
Large diffs are not rendered by default.

‎box/release/box.release.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.5.0",
5+
"tags": ["beta"],
6+
"author": "@chavyleung",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"notes": [
10+
{
11+
"name": "新增",
12+
"descs": ["抹掉数据: https://8.8.8.8/revert (更新完需要重启代理)", "出现问题时可单独访问页面抹掉数据"]
13+
},
14+
{
15+
"name": "调整",
16+
"descs": ["迁移内置应用至订阅: https://raw.githubusercontent.com/chavyleung/scripts/master/box/chavy.boxjs.json (需要手动更新订阅)"]
17+
}
18+
]
19+
},
320
{
421
"version": "0.4.23",
522
"tags": ["beta"],

‎chavy.box.js‎

Lines changed: 189 additions & 116 deletions
Large diffs are not rendered by default.

‎loon.box.conf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hostname = 8.8.8.8
22

33
http-request ^https://8.8.8.8/api script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js, requires-body=true
4-
http-response ^https://8.8.8.8/(home|sub|my|app|log)($|\/) script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js, requires-body=true
4+
http-response ^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/) script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js, requires-body=true

‎surge.box.sgmodule‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[Script]
55
Rewrite: Scripts Manager = type=http-request,pattern=^https://8.8.8.8/api,script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js,requires-body=true,max-size=0
6-
Rewrite: Scripts Manager = type=http-response,pattern=^https://8.8.8.8/(home|sub|my|app|log)($|\/),script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js,requires-body=true,max-size=0
6+
Rewrite: Scripts Manager = type=http-response,pattern=^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/),script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js,requires-body=true,max-size=0
77

88
[MITM]
99
hostname = %INSERT%, 8.8.8.8

0 commit comments

Comments
 (0)