From 9626ae656d4812d3d273e1bffbeeed61a7677b8d Mon Sep 17 00:00:00 2001 From: Thedogecraft Date: Sat, 28 Sep 2024 18:49:04 -0700 Subject: [PATCH] removed comments --- public/js/main.js | 1 - public/views/settings.ejs | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 66d2ef1..6ef54d4 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -56,7 +56,6 @@ const texts = [ 'Did you know lunaar.used to be a google site?', ]; -// adds ip to rng text fetch("https://api.ipify.org?format=json") .then((response) => response.json()) .then((data) => { diff --git a/public/views/settings.ejs b/public/views/settings.ejs index 4f84449..2941799 100644 --- a/public/views/settings.ejs +++ b/public/views/settings.ejs @@ -128,25 +128,18 @@ function hmm() { } loadSettings(); function resetSettings() { - + const reset = confirm("Are you sure you want to reset all settings?") if (reset) { localStorage.clear(); document.location.reload(); } else { - } - } function aboutBlank() { - // Open a new about:blank window const newWindow = window.open(); - - // Set styles for the body of the new window newWindow.document.body.style.margin = "0"; newWindow.document.body.style.height = "100vh"; - - // Create and style the iframe element const iframe = newWindow.document.createElement("iframe"); iframe.style.border = "none"; iframe.style.width = "100%"; @@ -156,8 +149,6 @@ function aboutBlank() { iframe.src = window.location.href; history.replaceState(null, '', ''); window.location.replace('https://www.google.com/search?q=what+day+is+today') - - // Append the iframe to the body of the new window newWindow.document.body.appendChild(iframe); }