console.warn(
"%cNote!",
"color: purple; font-weight: 600; background: yellow; padding: 0 5px; border-radius: 5px",
"If you want to add 3kh0s games to your site, please reach out at his email: [email protected]\nPlease do not just add them without asking him first! Thank you!"
);
function script(text) {
console.log(
"%cScript Injection",
"color: cyan; font-weight: 600; background: black; padding: 0 5px; border-radius: 5px",
text
);
}
var gaenabled = window.localStorage.getItem("ga");
if (gaenabled == "false") {
script("Skipped GA injection because it is disabled by the user.");
} else {
const gascript = document.createElement("script");
gascript.setAttribute("async", "");
gascript.setAttribute(
"src",
"https://www.googletagmanager.com/gtag/js?id=G-N0LG27M8L8"
);
const inlinegascript = document.createElement("script");
inlinegascript.innerHTML = `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-N0LG27M8L8');`;
document.head.append(gascript, inlinegascript);
script("Injected script 1/2");
}
const arc = document.createElement("script");
arc.setAttribute("async", "");
arc.setAttribute("src", "https://arc.io/widget.min.js#sdad");
document.head.append(arc);
script("Injected script 2/2");
function cheatNetwork1() {
var win = window.open();
var url = "https://cheatnetwork.eu/";
var iframe = win.document.createElement("iframe");
iframe.style.width = "100% ";
iframe.style.height = "100%";
iframe.style.position = "fixed";
iframe.style.top = "0";
iframe.style.bottom = "0";
iframe.style.left = "0";
iframe.style.left = "0";
iframe.style.border = "none";
iframe.style.backgroundcolor = "black";
iframe.src = url;
win.document.body.appendChild(iframe);
}
async function registerSW() {
if ("serviceWorker" in navigator) {
try {
await navigator.serviceWorker.register("./sw.js");
} catch (e) {
console.log(`SW registration failed`);
}
}
}