Skip to content

Commit 2d69abf

Browse files
authored
Merge pull request #21 from egerndaddy/support-egern-module
Support Egern module
2 parents d0cf706 + fc5ee8f commit 2d69abf

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

modules/script-hub.beta.egern.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Script Hub(β): 重写 & 规则集转换'
2+
description: https://script.hub
3+
compat_arguments:
4+
Notify: 开启通知
5+
compat_arguments_desc: Notify:\nScriptHub通知设置, 可选 开启通知, 关闭通知, 跟随链接
6+
author: '@小白脸 @xream @keywos @ckyb'
7+
scriptings:
8+
- http_request:
9+
name: 'Script Hub: 前端'
10+
match: ^https?:\/\/script\.hub\/($|edit\/|reload)
11+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/script-hub.beta.js
12+
timeout: 300
13+
- http_request:
14+
name: 'Script Hub: 重写转换'
15+
match: ^https?:\/\/script\.hub\/file\/_start_\/.+type=(?:qx-rewrite|surge-module|loon-plugin|all-module)
16+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/Rewrite-Parser.beta.js
17+
arguments:
18+
_compat.$argument: Notify={{{Notify}}}
19+
timeout: 300
20+
- http_request:
21+
name: 'Script Hub: 规则集转换'
22+
match: ^https?:\/\/script\.hub\/file\/_start_\/.+type=rule-set
23+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/rule-parser.beta.js
24+
arguments:
25+
_compat.$argument: Notify={{{Notify}}}
26+
timeout: 300
27+
- http_request:
28+
name: 'Script Hub: 脚本转换'
29+
match: ^https?:\/\/script\.hub\/convert\/
30+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/script-converter.beta.js
31+
timeout: 300
32+
mitm:
33+
hostnames:
34+
- script.hub
35+
- '*.script.hub'

modules/script-hub.egern.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Script Hub: 重写 & 规则集转换'
2+
description: https://script.hub
3+
compat_arguments:
4+
Notify: 开启通知
5+
compat_arguments_desc: Notify:\nScriptHub通知设置, 可选 开启通知, 关闭通知, 跟随链接
6+
author: '@小白脸 @xream @keywos @ckyb'
7+
scriptings:
8+
- http_request:
9+
name: 'Script Hub: 前端'
10+
match: ^https?:\/\/script\.hub\/($|edit\/|reload)
11+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/script-hub.js
12+
timeout: 300
13+
- http_request:
14+
name: 'Script Hub: 重写转换'
15+
match: ^https?:\/\/script\.hub\/file\/_start_\/.+type=(?:qx-rewrite|surge-module|loon-plugin|all-module)
16+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/Rewrite-Parser.js
17+
arguments:
18+
_compat.$argument: Notify={{{Notify}}}
19+
timeout: 300
20+
- http_request:
21+
name: 'Script Hub: 规则集转换'
22+
match: ^https?:\/\/script\.hub\/file\/_start_\/.+type=rule-set
23+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/rule-parser.js
24+
arguments:
25+
_compat.$argument: Notify={{{Notify}}}
26+
timeout: 300
27+
- http_request:
28+
name: 'Script Hub: 脚本转换'
29+
match: ^https?:\/\/script\.hub\/convert\/
30+
script_url: https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/script-converter.js
31+
timeout: 300
32+
mitm:
33+
hostnames:
34+
- script.hub
35+
- '*.script.hub'

0 commit comments

Comments
 (0)