q78kgblog 0.0.0-1720429643771 → 0.0.0-1720859005089

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.github/workflows/HexoSeoAutoPush.yml +12 -8
  2. package/404.html +4 -4
  3. package/about/index.html +6 -6
  4. package/archives/2023/02/index.html +5 -5
  5. package/archives/2023/04/index.html +5 -5
  6. package/archives/2023/05/index.html +5 -5
  7. package/archives/2023/08/index.html +5 -5
  8. package/archives/2023/09/index.html +5 -5
  9. package/archives/2023/index.html +5 -5
  10. package/archives/2024/01/index.html +5 -5
  11. package/archives/2024/02/index.html +5 -5
  12. package/archives/2024/index.html +5 -5
  13. package/archives/index.html +5 -5
  14. package/atom.xml +9 -9
  15. package/baidusitemap.xml +8 -8
  16. package/bangumis/index.html +7 -6
  17. package/bigpie/index.html +4 -4
  18. package/categories/Hexo/index.html +5 -5
  19. package/categories/index.html +4 -4
  20. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +5 -5
  21. package/categories//347/264/240/346/235/220/index.html +5 -5
  22. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +5 -5
  23. package/content.json +1 -1
  24. package/css/404page.css +1 -65
  25. package/css/ariasakablog.css +1 -0
  26. package/css/commentBarrage.css +1 -118
  27. package/css/danmaku.css +1 -104
  28. package/css/essay.css +1 -306
  29. package/css/iconfont.css +1 -55
  30. package/css/index.css +1 -7006
  31. package/css/people.css +1 -18
  32. package/css/stylessimple.css +1 -40
  33. package/css/swiperstyle.css +1 -567
  34. package/fcircle/index.html +4 -4
  35. package/fontawesome/index.html +4 -4
  36. package/index.html +12 -12
  37. package/js/aplayersave.js +1 -268
  38. package/js/baiduhistory.js +1 -76
  39. package/js/browser.js +1 -35
  40. package/js/calendar.js +1 -380
  41. package/js/cate.js +1 -22
  42. package/js/commentBarrage.js +17 -232
  43. package/js/commentsCount.js +1 -43
  44. package/js/copy.js +1 -23
  45. package/js/countup.js +1 -209
  46. package/js/cursor.js +1 -82
  47. package/js/danmaku.js +0 -106
  48. package/js/day.js +13 -195
  49. package/js/dianzan.js +1 -249
  50. package/js/dis.js +4 -253
  51. package/js/dist/baiduhistory.dev.js +1 -102
  52. package/js/dist/bbtalk.dev.js +159 -12872
  53. package/js/dist/bbtalklunbo.dev.js +1 -45
  54. package/js/dist/calendar.dev.js +1 -395
  55. package/js/dist/fixbugpjax.dev.js +1 -8
  56. package/js/dist/gongnong.dev.js +1 -565
  57. package/js/dist/heimu.dev.js +1 -19
  58. package/js/dist/links.dev.js +1 -13
  59. package/js/dist/main.dev.js +5 -843
  60. package/js/dist/resizeTop.dev.js +1 -50
  61. package/js/dist/seo.dev.js +1 -33
  62. package/js/dist/twikoo.all.min.dev.js +946 -1
  63. package/js/fixbugpjax.js +1 -7
  64. package/js/fixed_card_widget.js +1 -46
  65. package/js/fps.js +1 -59
  66. package/js/gitalker.js +1 -11
  67. package/js/heimu.js +1 -17
  68. package/js/hide.show.js +1 -17
  69. package/js/languages.js +1 -511
  70. package/js/latest.js +1 -49
  71. package/js/local-search.js +2 -476
  72. package/js/lunar.js +1 -1071
  73. package/js/lyxTalk.js +1 -12
  74. package/js/main.js +5 -781
  75. package/js/nav.js +1 -30
  76. package/js/noie.js +1 -3
  77. package/js/owo.js +1 -52
  78. package/js/people.js +2 -175
  79. package/js/randomFriend.js +1 -95
  80. package/js/resizeTop.js +1 -43
  81. package/js/rightmenu.js +3 -333
  82. package/js/sakura.js +1 -164
  83. package/js/search/algolia.js +4 -154
  84. package/js/search/local-search.js +1 -188
  85. package/js/settings.js +3 -344
  86. package/js/sitetime.js +1 -25
  87. package/js/smooth-scrolling.js +1 -546
  88. package/js/sw-toolbox.js +1 -16
  89. package/js/swiperinit.js +1 -23
  90. package/js/tw_cn.js +1 -100
  91. package/js/utils.js +1 -278
  92. package/js/welcome.js +1 -107
  93. package/js/welcomeconsole.js +1 -24
  94. package/links/index.html +4 -4
  95. package/othersite/index.html +4 -4
  96. package/package.json +1 -1
  97. package/posts/164ef646/index.html +7 -7
  98. package/posts/228c2ef8/index.html +7 -7
  99. package/posts/a9a6c1fb/index.html +7 -7
  100. package/posts/c262e439/index.html +7 -7
  101. package/posts/c81531cf/index.html +7 -7
  102. package/posts/ccdf7cfc/index.html +7 -7
  103. package/posts/de1f83f4/index.html +7 -7
  104. package/posts/e54f7476/index.html +7 -7
  105. package/random.html +2 -2
  106. package/sitemap.txt +2 -2
  107. package/sitemap.xml +55 -55
  108. package/sw.js +2 -193
  109. package/swReg.js +1 -29
  110. package/tags/AI/index.html +6 -6
  111. package/tags/Butterfly/index.html +6 -6
  112. package/tags/Cloudflare/index.html +6 -6
  113. package/tags/DiffSinger/index.html +6 -6
  114. package/tags/Hexo/index.html +6 -6
  115. package/tags/Next/index.html +6 -6
  116. package/tags/RAID/index.html +6 -6
  117. package/tags/Vercel/index.html +6 -6
  118. package/tags/Workers/index.html +6 -6
  119. package/tags/index.html +4 -4
  120. package/tags//344/270/273/351/242/230/index.html +6 -6
  121. package/tags//345/206/231/344/275/234/index.html +6 -6
  122. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +6 -6
  123. package/tags//345/255/246/344/271/240/index.html +6 -6
  124. package/tags//345/256/266/351/207/214/344/272/221/index.html +6 -6
  125. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +6 -6
  126. package/tags//346/212/230/350/205/276/index.html +6 -6
  127. package/tags//346/227/245/345/270/270/index.html +6 -6
  128. package/tags//346/234/215/345/212/241/345/231/250/index.html +6 -6
  129. package/tags//346/265/252/346/275/256/index.html +6 -6
  130. package/tags//347/256/200/347/210/261/index.html +6 -6
  131. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +6 -6
  132. package/tags//350/256/272/346/226/207/index.html +6 -6
  133. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +6 -6
  134. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +6 -6
  135. package/tags//351/207/221/345/217/245/index.html +6 -6
  136. package/tags//351/255/224/346/224/271/index.html +6 -6
package/sitemap.xml CHANGED
@@ -4,7 +4,7 @@
4
4
  <url>
5
5
  <loc>https://anjiurine.top/posts/c262e439/</loc>
6
6
 
7
- <lastmod>2024-07-08</lastmod>
7
+ <lastmod>2024-07-13</lastmod>
8
8
 
9
9
  <changefreq>monthly</changefreq>
10
10
  <priority>0.6</priority>
@@ -13,7 +13,7 @@
13
13
  <url>
14
14
  <loc>https://anjiurine.top/posts/164ef646/</loc>
15
15
 
16
- <lastmod>2024-07-08</lastmod>
16
+ <lastmod>2024-07-13</lastmod>
17
17
 
18
18
  <changefreq>monthly</changefreq>
19
19
  <priority>0.6</priority>
@@ -22,7 +22,7 @@
22
22
  <url>
23
23
  <loc>https://anjiurine.top/posts/e54f7476/</loc>
24
24
 
25
- <lastmod>2024-07-08</lastmod>
25
+ <lastmod>2024-07-13</lastmod>
26
26
 
27
27
  <changefreq>monthly</changefreq>
28
28
  <priority>0.6</priority>
@@ -31,7 +31,7 @@
31
31
  <url>
32
32
  <loc>https://anjiurine.top/posts/228c2ef8/</loc>
33
33
 
34
- <lastmod>2024-07-08</lastmod>
34
+ <lastmod>2024-07-13</lastmod>
35
35
 
36
36
  <changefreq>monthly</changefreq>
37
37
  <priority>0.6</priority>
@@ -40,7 +40,7 @@
40
40
  <url>
41
41
  <loc>https://anjiurine.top/posts/ccdf7cfc/</loc>
42
42
 
43
- <lastmod>2024-07-08</lastmod>
43
+ <lastmod>2024-07-13</lastmod>
44
44
 
45
45
  <changefreq>monthly</changefreq>
46
46
  <priority>0.6</priority>
@@ -49,7 +49,7 @@
49
49
  <url>
50
50
  <loc>https://anjiurine.top/posts/a9a6c1fb/</loc>
51
51
 
52
- <lastmod>2024-07-08</lastmod>
52
+ <lastmod>2024-07-13</lastmod>
53
53
 
54
54
  <changefreq>monthly</changefreq>
55
55
  <priority>0.6</priority>
@@ -58,7 +58,7 @@
58
58
  <url>
59
59
  <loc>https://anjiurine.top/posts/c81531cf/</loc>
60
60
 
61
- <lastmod>2024-07-08</lastmod>
61
+ <lastmod>2024-07-13</lastmod>
62
62
 
63
63
  <changefreq>monthly</changefreq>
64
64
  <priority>0.6</priority>
@@ -67,7 +67,7 @@
67
67
  <url>
68
68
  <loc>https://anjiurine.top/posts/de1f83f4/</loc>
69
69
 
70
- <lastmod>2024-07-08</lastmod>
70
+ <lastmod>2024-07-13</lastmod>
71
71
 
72
72
  <changefreq>monthly</changefreq>
73
73
  <priority>0.6</priority>
@@ -76,7 +76,7 @@
76
76
  <url>
77
77
  <loc>https://anjiurine.top/manifest.json</loc>
78
78
 
79
- <lastmod>2024-07-08</lastmod>
79
+ <lastmod>2024-07-13</lastmod>
80
80
 
81
81
  <changefreq>monthly</changefreq>
82
82
  <priority>0.6</priority>
@@ -85,7 +85,7 @@
85
85
  <url>
86
86
  <loc>https://anjiurine.top/othersite/index.html</loc>
87
87
 
88
- <lastmod>2024-07-08</lastmod>
88
+ <lastmod>2024-07-13</lastmod>
89
89
 
90
90
  <changefreq>monthly</changefreq>
91
91
  <priority>0.6</priority>
@@ -94,7 +94,7 @@
94
94
  <url>
95
95
  <loc>https://anjiurine.top/tags/index.html</loc>
96
96
 
97
- <lastmod>2024-07-08</lastmod>
97
+ <lastmod>2024-07-13</lastmod>
98
98
 
99
99
  <changefreq>monthly</changefreq>
100
100
  <priority>0.6</priority>
@@ -103,61 +103,61 @@
103
103
  <url>
104
104
  <loc>https://anjiurine.top/links/index.html</loc>
105
105
 
106
- <lastmod>2024-07-08</lastmod>
106
+ <lastmod>2024-07-13</lastmod>
107
107
 
108
108
  <changefreq>monthly</changefreq>
109
109
  <priority>0.6</priority>
110
110
  </url>
111
111
 
112
112
  <url>
113
- <loc>https://anjiurine.top/fcircle/index.html</loc>
113
+ <loc>https://anjiurine.top/about/index.html</loc>
114
114
 
115
- <lastmod>2024-07-08</lastmod>
115
+ <lastmod>2024-07-13</lastmod>
116
116
 
117
117
  <changefreq>monthly</changefreq>
118
118
  <priority>0.6</priority>
119
119
  </url>
120
120
 
121
121
  <url>
122
- <loc>https://anjiurine.top/fontawesome/index.html</loc>
122
+ <loc>https://anjiurine.top/bangumis/index.html</loc>
123
123
 
124
- <lastmod>2024-07-08</lastmod>
124
+ <lastmod>2024-07-13</lastmod>
125
125
 
126
126
  <changefreq>monthly</changefreq>
127
127
  <priority>0.6</priority>
128
128
  </url>
129
129
 
130
130
  <url>
131
- <loc>https://anjiurine.top/about/index.html</loc>
131
+ <loc>https://anjiurine.top/bigpie/index.html</loc>
132
132
 
133
- <lastmod>2024-07-08</lastmod>
133
+ <lastmod>2024-07-13</lastmod>
134
134
 
135
135
  <changefreq>monthly</changefreq>
136
136
  <priority>0.6</priority>
137
137
  </url>
138
138
 
139
139
  <url>
140
- <loc>https://anjiurine.top/bangumis/index.html</loc>
140
+ <loc>https://anjiurine.top/categories/index.html</loc>
141
141
 
142
- <lastmod>2024-07-08</lastmod>
142
+ <lastmod>2024-07-13</lastmod>
143
143
 
144
144
  <changefreq>monthly</changefreq>
145
145
  <priority>0.6</priority>
146
146
  </url>
147
147
 
148
148
  <url>
149
- <loc>https://anjiurine.top/bigpie/index.html</loc>
149
+ <loc>https://anjiurine.top/fcircle/index.html</loc>
150
150
 
151
- <lastmod>2024-07-08</lastmod>
151
+ <lastmod>2024-07-13</lastmod>
152
152
 
153
153
  <changefreq>monthly</changefreq>
154
154
  <priority>0.6</priority>
155
155
  </url>
156
156
 
157
157
  <url>
158
- <loc>https://anjiurine.top/categories/index.html</loc>
158
+ <loc>https://anjiurine.top/fontawesome/index.html</loc>
159
159
 
160
- <lastmod>2024-07-08</lastmod>
160
+ <lastmod>2024-07-13</lastmod>
161
161
 
162
162
  <changefreq>monthly</changefreq>
163
163
  <priority>0.6</priority>
@@ -166,7 +166,7 @@
166
166
 
167
167
  <url>
168
168
  <loc>https://anjiurine.top/</loc>
169
- <lastmod>2024-07-08</lastmod>
169
+ <lastmod>2024-07-13</lastmod>
170
170
  <changefreq>daily</changefreq>
171
171
  <priority>1.0</priority>
172
172
  </url>
@@ -174,182 +174,182 @@
174
174
 
175
175
  <url>
176
176
  <loc>https://anjiurine.top/tags/%E6%97%A5%E5%B8%B8/</loc>
177
- <lastmod>2024-07-08</lastmod>
177
+ <lastmod>2024-07-13</lastmod>
178
178
  <changefreq>weekly</changefreq>
179
179
  <priority>0.2</priority>
180
180
  </url>
181
181
 
182
182
  <url>
183
183
  <loc>https://anjiurine.top/tags/%E5%B9%B4%E7%BB%88%E6%80%BB%E7%BB%93/</loc>
184
- <lastmod>2024-07-08</lastmod>
184
+ <lastmod>2024-07-13</lastmod>
185
185
  <changefreq>weekly</changefreq>
186
186
  <priority>0.2</priority>
187
187
  </url>
188
188
 
189
189
  <url>
190
190
  <loc>https://anjiurine.top/tags/%E9%AD%94%E6%94%B9/</loc>
191
- <lastmod>2024-07-08</lastmod>
191
+ <lastmod>2024-07-13</lastmod>
192
192
  <changefreq>weekly</changefreq>
193
193
  <priority>0.2</priority>
194
194
  </url>
195
195
 
196
196
  <url>
197
197
  <loc>https://anjiurine.top/tags/Hexo/</loc>
198
- <lastmod>2024-07-08</lastmod>
198
+ <lastmod>2024-07-13</lastmod>
199
199
  <changefreq>weekly</changefreq>
200
200
  <priority>0.2</priority>
201
201
  </url>
202
202
 
203
203
  <url>
204
204
  <loc>https://anjiurine.top/tags/%E4%B8%BB%E9%A2%98/</loc>
205
- <lastmod>2024-07-08</lastmod>
205
+ <lastmod>2024-07-13</lastmod>
206
206
  <changefreq>weekly</changefreq>
207
207
  <priority>0.2</priority>
208
208
  </url>
209
209
 
210
210
  <url>
211
211
  <loc>https://anjiurine.top/tags/Next/</loc>
212
- <lastmod>2024-07-08</lastmod>
212
+ <lastmod>2024-07-13</lastmod>
213
213
  <changefreq>weekly</changefreq>
214
214
  <priority>0.2</priority>
215
215
  </url>
216
216
 
217
217
  <url>
218
218
  <loc>https://anjiurine.top/tags/Butterfly/</loc>
219
- <lastmod>2024-07-08</lastmod>
219
+ <lastmod>2024-07-13</lastmod>
220
220
  <changefreq>weekly</changefreq>
221
221
  <priority>0.2</priority>
222
222
  </url>
223
223
 
224
224
  <url>
225
225
  <loc>https://anjiurine.top/tags/%E6%B5%AA%E6%BD%AE/</loc>
226
- <lastmod>2024-07-08</lastmod>
226
+ <lastmod>2024-07-13</lastmod>
227
227
  <changefreq>weekly</changefreq>
228
228
  <priority>0.2</priority>
229
229
  </url>
230
230
 
231
231
  <url>
232
232
  <loc>https://anjiurine.top/tags/%E6%9C%8D%E5%8A%A1%E5%99%A8/</loc>
233
- <lastmod>2024-07-08</lastmod>
233
+ <lastmod>2024-07-13</lastmod>
234
234
  <changefreq>weekly</changefreq>
235
235
  <priority>0.2</priority>
236
236
  </url>
237
237
 
238
238
  <url>
239
239
  <loc>https://anjiurine.top/tags/%E6%8A%98%E8%85%BE/</loc>
240
- <lastmod>2024-07-08</lastmod>
240
+ <lastmod>2024-07-13</lastmod>
241
241
  <changefreq>weekly</changefreq>
242
242
  <priority>0.2</priority>
243
243
  </url>
244
244
 
245
245
  <url>
246
246
  <loc>https://anjiurine.top/tags/%E5%AE%B6%E9%87%8C%E4%BA%91/</loc>
247
- <lastmod>2024-07-08</lastmod>
247
+ <lastmod>2024-07-13</lastmod>
248
248
  <changefreq>weekly</changefreq>
249
249
  <priority>0.2</priority>
250
250
  </url>
251
251
 
252
252
  <url>
253
253
  <loc>https://anjiurine.top/tags/RAID/</loc>
254
- <lastmod>2024-07-08</lastmod>
254
+ <lastmod>2024-07-13</lastmod>
255
255
  <changefreq>weekly</changefreq>
256
256
  <priority>0.2</priority>
257
257
  </url>
258
258
 
259
259
  <url>
260
260
  <loc>https://anjiurine.top/tags/Cloudflare/</loc>
261
- <lastmod>2024-07-08</lastmod>
261
+ <lastmod>2024-07-13</lastmod>
262
262
  <changefreq>weekly</changefreq>
263
263
  <priority>0.2</priority>
264
264
  </url>
265
265
 
266
266
  <url>
267
267
  <loc>https://anjiurine.top/tags/Vercel/</loc>
268
- <lastmod>2024-07-08</lastmod>
268
+ <lastmod>2024-07-13</lastmod>
269
269
  <changefreq>weekly</changefreq>
270
270
  <priority>0.2</priority>
271
271
  </url>
272
272
 
273
273
  <url>
274
274
  <loc>https://anjiurine.top/tags/%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/</loc>
275
- <lastmod>2024-07-08</lastmod>
275
+ <lastmod>2024-07-13</lastmod>
276
276
  <changefreq>weekly</changefreq>
277
277
  <priority>0.2</priority>
278
278
  </url>
279
279
 
280
280
  <url>
281
281
  <loc>https://anjiurine.top/tags/%E8%B0%B7%E6%AD%8C%E7%BF%BB%E8%AF%91/</loc>
282
- <lastmod>2024-07-08</lastmod>
282
+ <lastmod>2024-07-13</lastmod>
283
283
  <changefreq>weekly</changefreq>
284
284
  <priority>0.2</priority>
285
285
  </url>
286
286
 
287
287
  <url>
288
288
  <loc>https://anjiurine.top/tags/Workers/</loc>
289
- <lastmod>2024-07-08</lastmod>
289
+ <lastmod>2024-07-13</lastmod>
290
290
  <changefreq>weekly</changefreq>
291
291
  <priority>0.2</priority>
292
292
  </url>
293
293
 
294
294
  <url>
295
295
  <loc>https://anjiurine.top/tags/%E7%AE%80%E7%88%B1/</loc>
296
- <lastmod>2024-07-08</lastmod>
296
+ <lastmod>2024-07-13</lastmod>
297
297
  <changefreq>weekly</changefreq>
298
298
  <priority>0.2</priority>
299
299
  </url>
300
300
 
301
301
  <url>
302
302
  <loc>https://anjiurine.top/tags/%E5%A5%B3%E6%80%A7%E6%84%8F%E8%AF%86/</loc>
303
- <lastmod>2024-07-08</lastmod>
303
+ <lastmod>2024-07-13</lastmod>
304
304
  <changefreq>weekly</changefreq>
305
305
  <priority>0.2</priority>
306
306
  </url>
307
307
 
308
308
  <url>
309
309
  <loc>https://anjiurine.top/tags/%E8%AE%BA%E6%96%87/</loc>
310
- <lastmod>2024-07-08</lastmod>
310
+ <lastmod>2024-07-13</lastmod>
311
311
  <changefreq>weekly</changefreq>
312
312
  <priority>0.2</priority>
313
313
  </url>
314
314
 
315
315
  <url>
316
316
  <loc>https://anjiurine.top/tags/%E9%87%91%E5%8F%A5/</loc>
317
- <lastmod>2024-07-08</lastmod>
317
+ <lastmod>2024-07-13</lastmod>
318
318
  <changefreq>weekly</changefreq>
319
319
  <priority>0.2</priority>
320
320
  </url>
321
321
 
322
322
  <url>
323
323
  <loc>https://anjiurine.top/tags/%E5%86%99%E4%BD%9C/</loc>
324
- <lastmod>2024-07-08</lastmod>
324
+ <lastmod>2024-07-13</lastmod>
325
325
  <changefreq>weekly</changefreq>
326
326
  <priority>0.2</priority>
327
327
  </url>
328
328
 
329
329
  <url>
330
330
  <loc>https://anjiurine.top/tags/%E5%AD%A6%E4%B9%A0/</loc>
331
- <lastmod>2024-07-08</lastmod>
331
+ <lastmod>2024-07-13</lastmod>
332
332
  <changefreq>weekly</changefreq>
333
333
  <priority>0.2</priority>
334
334
  </url>
335
335
 
336
336
  <url>
337
337
  <loc>https://anjiurine.top/tags/DiffSinger/</loc>
338
- <lastmod>2024-07-08</lastmod>
338
+ <lastmod>2024-07-13</lastmod>
339
339
  <changefreq>weekly</changefreq>
340
340
  <priority>0.2</priority>
341
341
  </url>
342
342
 
343
343
  <url>
344
344
  <loc>https://anjiurine.top/tags/%E8%87%AA%E5%8A%A8%E6%A0%87%E6%B3%A8/</loc>
345
- <lastmod>2024-07-08</lastmod>
345
+ <lastmod>2024-07-13</lastmod>
346
346
  <changefreq>weekly</changefreq>
347
347
  <priority>0.2</priority>
348
348
  </url>
349
349
 
350
350
  <url>
351
351
  <loc>https://anjiurine.top/tags/AI/</loc>
352
- <lastmod>2024-07-08</lastmod>
352
+ <lastmod>2024-07-13</lastmod>
353
353
  <changefreq>weekly</changefreq>
354
354
  <priority>0.2</priority>
355
355
  </url>
@@ -358,28 +358,28 @@
358
358
 
359
359
  <url>
360
360
  <loc>https://anjiurine.top/categories/%E5%B9%B4%E7%BB%88%E6%80%BB%E7%BB%93/</loc>
361
- <lastmod>2024-07-08</lastmod>
361
+ <lastmod>2024-07-13</lastmod>
362
362
  <changefreq>weekly</changefreq>
363
363
  <priority>0.2</priority>
364
364
  </url>
365
365
 
366
366
  <url>
367
367
  <loc>https://anjiurine.top/categories/Hexo/</loc>
368
- <lastmod>2024-07-08</lastmod>
368
+ <lastmod>2024-07-13</lastmod>
369
369
  <changefreq>weekly</changefreq>
370
370
  <priority>0.2</priority>
371
371
  </url>
372
372
 
373
373
  <url>
374
374
  <loc>https://anjiurine.top/categories/%E9%97%B2%E8%81%8A%E6%9D%82%E8%B0%88/</loc>
375
- <lastmod>2024-07-08</lastmod>
375
+ <lastmod>2024-07-13</lastmod>
376
376
  <changefreq>weekly</changefreq>
377
377
  <priority>0.2</priority>
378
378
  </url>
379
379
 
380
380
  <url>
381
381
  <loc>https://anjiurine.top/categories/%E7%B4%A0%E6%9D%90/</loc>
382
- <lastmod>2024-07-08</lastmod>
382
+ <lastmod>2024-07-13</lastmod>
383
383
  <changefreq>weekly</changefreq>
384
384
  <priority>0.2</priority>
385
385
  </url>
package/sw.js CHANGED
@@ -1,193 +1,2 @@
1
- const CACHE_NAME = 'ICDNCache';
2
- let cachelist = [];
3
- self.addEventListener('install', async function (installEvent) {
4
- self.skipWaiting();
5
- installEvent.waitUntil(
6
- caches.open(CACHE_NAME)
7
- .then(function (cache) {
8
- console.log('Opened cache');
9
- return cache.addAll(cachelist);
10
- })
11
- );
12
- });
13
- self.addEventListener('fetch', async event => {
14
- try {
15
- event.respondWith(handle(event.request))
16
- } catch (msg) {
17
- event.respondWith(handleerr(event.request, msg))
18
- }
19
- });
20
- const handleerr = async (req, msg) => {
21
- return new Response(`<h1>CDN分流器遇到了致命错误</h1>
22
- <b>${msg}</b>`, { headers: { "content-type": "text/html; charset=utf-8" } })
23
- }
24
- const lfetch = async (urls, url) => {
25
- let controller = new AbortController();
26
- const PauseProgress = async (res) => {
27
- return new Response(await (res).arrayBuffer(), { status: res.status, headers: res.headers });
28
- };
29
- if (!Promise.any) {
30
- Promise.any = function (promises) {
31
- return new Promise((resolve, reject) => {
32
- promises = Array.isArray(promises) ? promises : []
33
- let len = promises.length
34
- let errs = []
35
- if (len === 0) return reject(new AggregateError('All promises were rejected'))
36
- promises.forEach((promise) => {
37
- promise.then(value => {
38
- resolve(value)
39
- }, err => {
40
- len--
41
- errs.push(err)
42
- if (len === 0) {
43
- reject(new AggregateError(errs))
44
- }
45
- })
46
- })
47
- })
48
- }
49
- }
50
- return Promise.any(urls.map(urls => {
51
- return new Promise((resolve, reject) => {
52
- fetch(urls, {
53
- signal: controller.signal
54
- })
55
- .then(PauseProgress)
56
- .then(res => {
57
- if (res.status == 200) {
58
- controller.abort();
59
- resolve(res)
60
- } else {
61
- reject(res)
62
- }
63
- })
64
- })
65
- }))
66
- }
67
- self.addEventListener('fetch', async event => {
68
- try {
69
- event.respondWith(handle(event.request))
70
- } catch (err) {
71
- if (fullpath(urlPath).indexOf(".html") != -1) {
72
- event.respondWith(fetch("/404.html"))
73
- }
74
- }
75
- });
76
- const fullpath = (path) => {
77
- path = path.split('?')[0].split('#')[0]
78
- if (path.match(/\/$/)) {
79
- path += 'index'
80
- }
81
- if (!path.match(/\.[a-zA-Z]+$/)) {
82
- path += '.html'
83
- }
84
- return path
85
- }
86
- const generate_blog_urls = (packagename, blogversion, path) => {
87
- const npmmirror = [
88
- // `https://unpkg.zhimg.com/${packagename}@${blogversion}`,
89
- // `https://npm.elemecdn.com/${packagename}@${blogversion}`,
90
- // `https://cdn1.tianli0.top/npm/${packagename}@${blogversion}`,
91
- // `https://cdn.afdelivr.top/npm/${packagename}@${blogversion}`,
92
- // `https://ariasakablog.s3.ladydaily.com`,
93
- // `https://registry.npmmirror.com/${packagename}/${blogversion}/files`,
94
- `https://cdn.cbd.int/${packagename}@${blogversion}`
95
- ]
96
- for (var i in npmmirror) {
97
- npmmirror[i] += path
98
- }
99
- return npmmirror
100
- }
101
- const mirror = [
102
- // `https://registry.npmmirror.com/ariasakablog/latest`,
103
- // `https://registry.npmjs.org/ariasakablog/latest`,
104
- // `https://registry.npmmirror.com/q78kgblog/latest`,
105
- // `https://cdn.cbd.int/q78kgblog`,
106
- `https://mirrors.cloud.tencent.com/npm/q78kgblog/latest`
107
- ]
108
- const get_newest_version = async (mirror) => {
109
- return lfetch(mirror, mirror[0])
110
- .then(res => res.json())
111
- .then(res.version)
112
- }
113
- self.db = { //全局定义db,只要read和write,看不懂可以略过
114
- read: (key, config) => {
115
- if (!config) { config = { type: "text" } }
116
- return new Promise((resolve, reject) => {
117
- caches.open(CACHE_NAME).then(cache => {
118
- cache.match(new Request(`https://LOCALCACHE/${encodeURIComponent(key)}`)).then(function (res) {
119
- if (!res) resolve(null)
120
- res.text().then(text => resolve(text))
121
- }).catch(() => {
122
- resolve(null)
123
- })
124
- })
125
- })
126
- },
127
- write: (key, value) => {
128
- return new Promise((resolve, reject) => {
129
- caches.open(CACHE_NAME).then(function (cache) {
130
- cache.put(new Request(`https://LOCALCACHE/${encodeURIComponent(key)}`), new Response(value));
131
- resolve()
132
- }).catch(() => {
133
- reject()
134
- })
135
- })
136
- }
137
- }
138
-
139
- const set_newest_version = async (mirror) => { //改为最新版本写入数据库
140
- return lfetch(mirror, mirror[0])
141
- .then(res => res.json()) //JSON Parse
142
- .then(async res => {
143
- await db.write('blog_version', res.version) //写入
144
- return;
145
- })
146
- }
147
-
148
- setInterval(async () => {
149
- await set_newest_version(mirror) //定时更新,一分钟一次
150
- }, 60 * 1000);
151
-
152
- setTimeout(async () => {
153
- await set_newest_version(mirror)//打开五秒后更新,避免堵塞
154
- }, 5000)
155
- function getFileType(fileName) {
156
- suffix = fileName.split('.')[fileName.split('.').length - 1]
157
- if (suffix == "html" || suffix == "htm") {
158
- return 'text/html';
159
- }
160
- if (suffix == "js") {
161
- return 'text/javascript';
162
- }
163
- if (suffix == "css") {
164
- return 'text/css';
165
- }
166
- if (suffix == "jpg" || suffix == "jpeg") {
167
- return 'image/jpeg';
168
- }
169
- if (suffix == "ico") {
170
- return 'image/x-icon';
171
- }
172
- if (suffix == "png") {
173
- return 'image/png';
174
- }
175
- return 'text/plain';
176
- }
177
- const handle = async (req) => {
178
- const urlStr = req.url
179
- const urlObj = new URL(urlStr);
180
- const urlPath = urlObj.pathname;
181
- const domain = urlObj.hostname;
182
- //从这里开始
183
- lxs = []
184
- if (domain === "anjiurine.top") {//这里写你需要拦截的域名
185
- var l = lfetch(generate_blog_urls('q78kgblog', await db.read('blog_version') || 'latest', fullpath(urlPath)))
186
- return l
187
- .then(res => res.arrayBuffer())
188
- .then(buffer => new Response(buffer, { headers: { "Content-Type": `${getFileType(fullpath(urlPath).split("/")[fullpath(urlPath).split("/").length - 1].split("\\")[fullpath(urlPath).split("/")[fullpath(urlPath).split("/").length - 1].split("\\").length - 1])};charset=utf-8` } }));//重新定义header
189
- }
190
- else {
191
- return fetch(req);
192
- }
193
- }
1
+ const CACHE_NAME="ICDNCache";let cachelist=[];self.addEventListener("install",async function(e){self.skipWaiting(),e.waitUntil(caches.open(CACHE_NAME).then(function(t){return console.log("Opened cache"),t.addAll(cachelist)}))}),self.addEventListener("fetch",async e=>{try{e.respondWith(handle(e.request))}catch(t){e.respondWith(handleerr(e.request,t))}});const handleerr=async(e,t)=>new Response(`<h1>CDN\u5206\u6D41\u5668\u9047\u5230\u4E86\u81F4\u547D\u9519\u8BEF</h1>
2
+ <b>${t}</b>`,{headers:{"content-type":"text/html; charset=utf-8"}}),lfetch=async(e,t)=>{let s=new AbortController;const r=async n=>new Response(await n.arrayBuffer(),{status:n.status,headers:n.headers});return Promise.any||(Promise.any=function(n){return new Promise((a,i)=>{n=Array.isArray(n)?n:[];let c=n.length,l=[];if(c===0)return i(new AggregateError("All promises were rejected"));n.forEach(u=>{u.then(o=>{a(o)},o=>{c--,l.push(o),c===0&&i(new AggregateError(l))})})})}),Promise.any(e.map(n=>new Promise((a,i)=>{fetch(n,{signal:s.signal}).then(r).then(c=>{c.status==200?(s.abort(),a(c)):i(c)})})))};self.addEventListener("fetch",async e=>{try{e.respondWith(handle(e.request))}catch{fullpath(urlPath).indexOf(".html")!=-1&&e.respondWith(fetch("/404.html"))}});const fullpath=e=>(e=e.split("?")[0].split("#")[0],e.match(/\/$/)&&(e+="index"),e.match(/\.[a-zA-Z]+$/)||(e+=".html"),e),generate_blog_urls=(e,t,s)=>{const r=[`https://cdn.cbd.int/${e}@${t}`];for(var n in r)r[n]+=s;return r},mirror=["https://mirrors.cloud.tencent.com/npm/q78kgblog/latest"],get_newest_version=async e=>lfetch(e,e[0]).then(t=>t.json()).then(res.version);self.db={read:(e,t)=>(t||(t={type:"text"}),new Promise((s,r)=>{caches.open(CACHE_NAME).then(n=>{n.match(new Request(`https://LOCALCACHE/${encodeURIComponent(e)}`)).then(function(a){a||s(null),a.text().then(i=>s(i))}).catch(()=>{s(null)})})})),write:(e,t)=>new Promise((s,r)=>{caches.open(CACHE_NAME).then(function(n){n.put(new Request(`https://LOCALCACHE/${encodeURIComponent(e)}`),new Response(t)),s()}).catch(()=>{r()})})};const set_newest_version=async e=>lfetch(e,e[0]).then(t=>t.json()).then(async t=>{await db.write("blog_version",t.version)});setInterval(async()=>{await set_newest_version(mirror)},60*1e3),setTimeout(async()=>{await set_newest_version(mirror)},5e3);function getFileType(e){return suffix=e.split(".")[e.split(".").length-1],suffix=="html"||suffix=="htm"?"text/html":suffix=="js"?"text/javascript":suffix=="css"?"text/css":suffix=="jpg"||suffix=="jpeg"?"image/jpeg":suffix=="ico"?"image/x-icon":suffix=="png"?"image/png":"text/plain"}const handle=async e=>{const t=e.url,s=new URL(t),r=s.pathname,n=s.hostname;if(lxs=[],n==="anjiurine.top"){var a=lfetch(generate_blog_urls("q78kgblog",await db.read("blog_version")||"latest",fullpath(r)));return a.then(i=>i.arrayBuffer()).then(i=>new Response(i,{headers:{"Content-Type":`${getFileType(fullpath(r).split("/")[fullpath(r).split("/").length-1].split("\\")[fullpath(r).split("/")[fullpath(r).split("/").length-1].split("\\").length-1])};charset=utf-8`}}))}else return fetch(e)};
package/swReg.js CHANGED
@@ -1,29 +1 @@
1
- (async () => {//使用匿名函数确保body已载入
2
- /*
3
- ChenBlogHelper_Set 存储在LocalStorage中,用于指示sw安装状态
4
- 0 或不存在 未安装
5
- 1 已打断
6
- 2 已安装
7
- 3 已激活,并且已缓存必要的文件(此处未写出,无需理会)
8
- */
9
- const $ = document.querySelector.bind(document);//语法糖
10
- if ('serviceWorker' in navigator) { //如果支持sw
11
- if (Number(window.localStorage.getItem('ChenBlogHelper_Set')) < 1) {
12
- window.localStorage.setItem('ChenBlogHelper_Set', 1)
13
- window.stop()
14
- document.innerHTML=""
15
- }
16
- navigator.serviceWorker.register(`/sw.js?time=${Math.ceil(Math.random()*10000000000000000000)}`)//随机数,强制更新
17
- .then(async () => {
18
- if (Number(window.localStorage.getItem('ChenBlogHelper_Set')) < 2) {
19
- setTimeout(() => {
20
- window.localStorage.setItem('ChenBlogHelper_Set', 2)
21
- //window.location.search = `?time=${ranN(1, 88888888888888888888)}` //已弃用,在等待500ms安装成功后直接刷新没有问题
22
- window.location.reload()//刷新,以载入sw
23
- }, 500)//安装后等待500ms使其激活
24
- }
25
- })
26
- .catch(err => console.error(`ChenBlogHelperError:${err}`))
27
- }
28
-
29
- })()
1
+ (async()=>{const o=document.querySelector.bind(document);"serviceWorker"in navigator&&(Number(window.localStorage.getItem("ChenBlogHelper_Set"))<1&&(window.localStorage.setItem("ChenBlogHelper_Set",1),window.stop(),document.innerHTML=""),navigator.serviceWorker.register(`/sw.js?time=${Math.ceil(Math.random()*1e19)}`).then(async()=>{Number(window.localStorage.getItem("ChenBlogHelper_Set"))<2&&setTimeout(()=>{window.localStorage.setItem("ChenBlogHelper_Set",2),window.location.reload()},500)}).catch(e=>console.error(`ChenBlogHelperError:${e}`)))})();