From 96203adacf2f8d656e8e945e8ae11b4384d1b986 Mon Sep 17 00:00:00 2001 From: sky Date: Wed, 25 Oct 2023 14:04:36 +0000 Subject: [PATCH] improve open blank and quote --- blank.html | 1 + js/randomquote.js | 2 ++ quotes.json | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/blank.html b/blank.html index 38587409..9fdb41e5 100644 --- a/blank.html +++ b/blank.html @@ -15,6 +15,7 @@ iframe.allow = "fullscreen"; iframe.src = location.origin; win.document.body.appendChild(iframe); + window.location.href = "https://google.com" } createBlank(); diff --git a/js/randomquote.js b/js/randomquote.js index 630265cd..36a9e7a7 100644 --- a/js/randomquote.js +++ b/js/randomquote.js @@ -3,6 +3,8 @@ $.getJSON("/quotes.json", function(data){ if(index.includes("OGNUM1") && index.includes("SQRTNUM1")) { let ognum = Math.floor(Math.random() * 3000); index = "the square root of " + ognum + " is " + Math.sqrt(ognum) + } else if(index.includes("CURRENTURL")) { + index = window.location.hostname } $("p#randomquote").text(index) }) \ No newline at end of file diff --git a/quotes.json b/quotes.json index 8b0215c0..6246578a 100644 --- a/quotes.json +++ b/quotes.json @@ -19,7 +19,7 @@ "buy smth from the patreon so i dont have to be in debt anymore", "https://skysthelimit.dev", "https://github.com/selenite-cc", - "selenite.pages.dev", + "CURRENTURL", "the square root of OGNUM1 is SQRTNUM1", "ZG8geW91ciBzY2hvb2wgd29yaw", "use the transfer tool to keep ur data from other websites", @@ -29,5 +29,7 @@ "what website is this?", "btw, hcps leaked 30k+ private emails and are hiding it :)", "we love about:blank", - "make sure to back up ur saves incase we ever get blocked" + "make sure to back up ur saves incase we ever get blocked", + "join the discord to be cool", + "" ] \ No newline at end of file