Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpmanDev committed Apr 22, 2024
1 parent 3ab4ab4 commit 50bc260
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions static/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand All @@ -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";
});
});
Expand Down
3 changes: 2 additions & 1 deletion static/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});
});
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<link rel="stylesheet" href="/assets/css/app.css">
<link rel="stylesheet" href="/assets/css/menu.css">
<script rel="preload" src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script rel="preload" src="/assets/js/particles.js"></script>
<script src="/assets/js/functions.js"></script>
<script src="/assets/js/anym.js"></script>
<title>Doge | V4</title>
Expand Down Expand Up @@ -38,9 +37,10 @@
<div class="bottom-right-content themesExcluded">
<a href="/credits">Credits</a>
</div>
<script rel="preload" src="/assets/js/main.js"></script>
<script src="/assets/js/themes.js"></script>
<script src="/assets/js/particles.js"></script>
<script src="/assets/js/index.js"></script>
<script src="/assets/js/main.js"></script>
</div>
<script type='text/javascript' src='//pl22991509.profitablegatecpm.com/df/d2/e1/dfd2e1c094b00a158058ce0068d7df84.js'></script>
</body>
Expand Down

0 comments on commit 50bc260

Please sign in to comment.