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 afcc4602..78ee25dc 100644 Binary files a/js/random.js.br and b/js/random.js.br differ diff --git a/js/random.js.gz b/js/random.js.gz index 66cce422..058e42d4 100644 Binary files a/js/random.js.gz and b/js/random.js.gz differ