Skip to content

Commit

Permalink
Merge pull request #35 from GreenyDEV/main
Browse files Browse the repository at this point in the history
fix games button [HOTFIX]
  • Loading branch information
GreenyDEV committed Nov 14, 2022
2 parents b1441fa + 255e39e commit 4bc3ff4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions static/resources/nebulamain.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,3 +750,45 @@ function handleTabLeave() {
}
// Create and Add the event listener
document.addEventListener("visibilitychange", handleTabLeave)


const stealthStored = localStorage.getItem('nogg')
function link(_link) {
if (stealthStored == "on") {
let inFrame
try {
inFrame = window !== top
} catch (e) {
inFrame = true
}
setTimeout(() => {
if (!inFrame && !navigator.userAgent.includes("Firefox")) {
const popup = open("about:blank", "_blank")
if (!popup || popup.closed) {
alert("Popups are disabled!")
} else {
const doc = popup.document
const iframe = doc.createElement("iframe")
const style = iframe.style
const img = doc.createElement("link")
const link = location.href
img.rel = "icon"
img.href =
"https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"
doc.title = getRandomName()
var currentLink = link.slice(0, link.length - 1)
iframe.src =
currentLink + "/service/go/" + __uv$config.encodeUrl(_link)
style.position = "fixed"
style.top = style.bottom = style.left = style.right = 0
style.border = style.outline = "none"
style.width = style.height = "100%"
doc.body.appendChild(iframe)
}
}
}, 0200)
} else {
location.href =
"service/go/" + __uv$config.encodeUrl("https://radon.games/")
}
}

0 comments on commit 4bc3ff4

Please sign in to comment.