From 6ab3db883ea5f926f9ec6692e049155964ee42fa Mon Sep 17 00:00:00 2001 From: accessgames <83598795+accessgames@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:38:44 -0800 Subject: [PATCH] Delete tabhider.js --- tabhider.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 tabhider.js diff --git a/tabhider.js b/tabhider.js deleted file mode 100644 index 5174b7f..0000000 --- a/tabhider.js +++ /dev/null @@ -1,36 +0,0 @@ -let inFrame - -try { - inFrame = window !== top -} catch (e) { - inFrame = true -} - -if (!inFrame && !navigator.userAgent.includes("Firefox")) { - const popup = open("about:blank", "_blank") - if (!popup || popup.closed) { - alert("Allow popups and redirects to hide this from showing up in your history.") - } else { - const doc = popup.document - const iframe = doc.createElement("iframe") - const style = iframe.style - const link = doc.createElement("link") - - const name = localStorage.getItem("name") || "Canvas"; - const icon = localStorage.getItem("icon") || "https://placeholder.png"; - - doc.title = name; - link.rel = "icon"; - link.href = icon; - - iframe.src = location.href - style.position = "fixed" - style.top = style.bottom = style.left = style.right = 0 - style.border = style.outline = "none" - style.width = style.height = "100%" - - doc.head.appendChild(link); - doc.body.appendChild(iframe) - location.replace("https://my.pps.net) - } -}