sinzmise-cetastories-en 2.0.0-1732434744332 → 2.0.0-1732435619107

Sign up to get free protection for your applications and to get access to all the features.
package/config.yaml CHANGED
@@ -17,6 +17,15 @@ catch_rules:
17
17
  - https://cdnjs.cdn.storisinz.site/ajax/libs
18
18
  - https://cdnjs.onmicrosoft.cn/ajax/libs
19
19
 
20
+ - rule: ^https\:\/\/cdnjs\.cloudflare\.com\/ajax\/libs
21
+ transform_rules:
22
+ - search: _
23
+ replace:
24
+ - _
25
+ - https://cdnjs.webstatic.cn/ajax/libs
26
+ - https://cdnjs.cdn.storisinz.site/ajax/libs
27
+ - https://cdnjs.onmicrosoft.cn/ajax/libs
28
+
20
29
  - rule: ^https\:\/\/((cdn|fastly|gcore|test1|quantil)\.jsdelivr\.net\/gh)
21
30
  transform_rules:
22
31
  - search: _
@@ -28,33 +37,46 @@ catch_rules:
28
37
  - rule: _ #ClientWorker语法糖,匹配当前域,返回一个域名带端口
29
38
  transform_rules: #转换规则,最上面的优先最高
30
39
  - search: \#.* #在发送请求时匹配#后内容并移除
40
+ searchin: url
31
41
  replace: ''
32
42
  - search: \?.* #在发送请求时匹配?后内容并移除,仅限静态请求
33
43
  replace: ''
34
- - search: boringbay\.com
44
+ - search: ([^\/.]+)\/index(|\.html)$ #优化url
45
+ action: redirect
46
+ redirect:
47
+ to: $1/
48
+ - search: boringbay\.com #绕过boringbay
35
49
  action: skip
36
- - search: tk\.pl\.blog\.sinzmise\.top
50
+ - search: tk\.pl\.blog\.sinzmise\.top #绕过twikoo后端
37
51
  action: skip
52
+ - search: ([^\/.]+)\/$ #解析index.html
53
+ replace: $1/index.html
54
+
38
55
  - search: _
39
56
  replace:
40
57
  - _ #保留原始请求
41
58
  - en.vercel.blog.sinzmise.top #Vercel托管
42
-
59
+ - jsd.cdn.storisinz.site/npm/sinzmise-cetastories-en #npm托管
60
+ - jsd.cdn.storisinz.site/gh/SinzMise/blog@en #gh托管
43
61
  - search: \.html$
44
62
  header:
45
63
  Content-Type: text/html;charset=UTF-8 #修复标头
46
64
 
47
- - search: _
65
+ - rule: .*
66
+ transform_rules:
67
+ - search: .*
48
68
  action: fetch
49
69
  fetch:
50
- status: 200
51
- engine: classic
70
+ enable: true
71
+ engine: fetch
52
72
  preflight: false
53
- timeout: 5000
54
-
55
- - search: (^4|^5)
56
- searchin: status
73
+
74
+ - search: (^4|^5)
75
+ searchin: status
57
76
  action: return
58
- return:
59
- body: The GateWay is down!This Page is provided by ClientWorker!
60
- status: 503
77
+ return:
78
+ body: Error!
79
+ header:
80
+ content-type: text/plain;charset=utf-8
81
+ ServerProvide: ClientWorker
82
+ status: 503