From 50bc26003671477935eee601fe92a607b1fd7578 Mon Sep 17 00:00:00 2001 From: Derpman Date: Mon, 22 Apr 2024 02:03:56 +0000 Subject: [PATCH] fix --- static/assets/js/index.js | 6 +++--- static/assets/js/main.js | 3 ++- static/index.html | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/assets/js/index.js b/static/assets/js/index.js index 808cc22b..86fa1a8a 100644 --- a/static/assets/js/index.js +++ b/static/assets/js/index.js @@ -3,9 +3,6 @@ const input = document.querySelector("input"); const remove = document.querySelectorAll('body > :not(#particles-js)'); form.addEventListener("submit", async (event) => { - remove.forEach(element => { - element.remove(); - }); event.preventDefault(); window.navigator.serviceWorker .register("./sw.js", { @@ -17,6 +14,9 @@ form.addEventListener("submit", async (event) => { else if (!(url.startsWith("https://") || url.startsWith("http://"))) url = "http://" + url; localStorage.setItem("encodedUrl", __uv$config.encodeUrl(url)); + remove.forEach(element => { + element.remove(); + }); location.href = "/student"; }); }); diff --git a/static/assets/js/main.js b/static/assets/js/main.js index 1b094abe..0edef543 100644 --- a/static/assets/js/main.js +++ b/static/assets/js/main.js @@ -24,10 +24,10 @@ function loadCSS(href, callback) { loadScript("/uv/uv.handler.js", function () { loadScript("/uv/uv.bundle.js", function () { loadScript("/uv/uv.config.js", function () { - console.log("[✔️] UV Loaded"); window.navigator.serviceWorker.register("/sw.js", { scope: __uv$config.prefix, }); + console.log("[✔️] UV Loaded"); }); }); }); @@ -64,6 +64,7 @@ if (window.location.pathname === "/index.html" || window.location.pathname === " "Tab Cloaking is highly recommended", "About:Blank Cloak is highly recommended", "The #1 site unblocker, with 90K users daily", + "The #1 site unblocker, with 90K users daily", "Finally, an actual site unblocker that works fast!", "Do not share this link with anyone.", "Join our community at discord.gg/unblocking", diff --git a/static/index.html b/static/index.html index e2a455be..46fb550c 100644 --- a/static/index.html +++ b/static/index.html @@ -8,7 +8,6 @@ - Doge | V4 @@ -38,9 +37,10 @@
Credits
+ + -