From 40774766951e04b8528b254def946fb2a1a97601 Mon Sep 17 00:00:00 2001 From: mobeicanyue Date: Tue, 27 Feb 2024 09:26:38 +0000 Subject: [PATCH] deploy: c10afe961f2dd2f380c8253f496c1d3e19008cfb --- js/random.js | 2 +- js/random.js.br | Bin 242 -> 255 bytes js/random.js.gz | Bin 327 -> 346 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/js/random.js b/js/random.js index ef67bb0b..607f634a 100644 --- a/js/random.js +++ b/js/random.js @@ -1 +1 @@ -function randomRedirect(){fetch("sitemap.txt").then((t=>{if(!t.ok)throw new Error("Network response was not ok. Status: "+t.status);return t.text()})).then((t=>{let e=t.trim().split("\n");if(0===e.length)throw new Error("No links found in the sitemap.");let r=e[Math.floor(Math.random()*e.length)].trim();if(!r)throw new Error("Invalid random link: "+r);document.querySelector(".nav-item:nth-child(6) a").href=r})).catch((t=>{console.error("There was a problem with the fetch operation:",t)}))}randomRedirect(); \ No newline at end of file +function randomRedirect(){fetch("https://blog.ovvv.top/sitemap.txt").then((t=>{if(!t.ok)throw new Error("Network response was not ok. Status: "+t.status);return t.text()})).then((t=>{let e=t.trim().split("\n");if(0===e.length)throw new Error("No links found in the sitemap.");let r=e[Math.floor(Math.random()*e.length)].trim();if(!r)throw new Error("Invalid random link: "+r);document.querySelector(".nav-item:nth-child(6) a").href=r})).catch((t=>{console.error("There was a problem with the fetch operation:",t)}))}randomRedirect(); \ No newline at end of file diff --git a/js/random.js.br b/js/random.js.br index afcc46020bd19891c42a092146c535cd4f8af0e9..78ee25dc3291c469b8fa3142fd93f45ff724451e 100644 GIT binary patch literal 255 zcmVYLdwNR=_- zwtBkKo~{pZ3Q0vO8C<`{RVF_pyqG)cK_a8t3bZZb#(&0|<_2eqCVr@#_-I#>z1xwh z+NJ#{8mTI#Hg_PxDkNS2JX^J`^jpcaU{&@(hz0kHc3A7uRajsM4TxqfFN_FniaZRC zs-!$W21`9J5fAM3;>YaH#1gj_YO4jDh-kwT%N7G&KbXSZp8+&sR_WWIa!!3nd-_km FSOEO&c%=XU literal 242 zcmVYqeZgb-K8yT*NCsq1_7l?(1p7+qzSHnL@oimcIe!9w@uH$eTkwR(~ zT&V_iF25Z-oI463{Xtn2Xi&zE{~W7d7@R5E^`W!G{;nb;S0h!mhxk%9vM!q@?;3*2 zBVGhJc4}Lar{oyH(Dq4)1@?_@IqS+lm`WHL0F66dSPmKzxfNWMOLcw>(<$Z^lA)14 s{FvRDSdz{n?YMwj4o$p;T(O|zPf)neGXN&k&v3$La~go!)xXeU0gp3wssI20 diff --git a/js/random.js.gz b/js/random.js.gz index 66cce422b3f52c682ec7b0a87dbd2ec624b4e8b7..058e42d41ad50a9df744789adfe12d58e92c28b7 100644 GIT binary patch literal 346 zcmV-g0j2&QiwFP!0000218tEpQ{6BSg#XH+N=iU4Rf^|vItmIXfG(jB_8DoOd}mH) zn+(H$XXFPAL(*+?x4YjCGj*DnKmzqVUSppGJGJh4K<%P6QFSW&-R?f~gXd*gyz;aw zNpTF5*C#d3YeceE+h5OVuqW#I;4})aK)AxW2#YmWs4L3>1k1!!5Y|wDSb+~7ZZzmz z_F%rNFPnCapw2>|Uhzq-dvTwAGAdxJUL}pz`7-6C*8Cyknl#uSZQG*HNDmtSlY}8B zIusaqrXCW3Muhi9#x?c1wD|inX!Jv77Q4wKBI~|={Jwh&P)$$dU#kmRLQee~+|9O@ z6xa0J%_EZf#~J1C4QA}LUU&-2S&gzMjb~jiq;adbEebrLggW`&oNC4T@^$*=73Fj)~31&SeAUKz&)YYXo%`0`-b7YTdj0 z>61|bTlFeww9c0)C$;8|jBCEa000+4l_3BC