Stealth Access:
Press a then b then Enter anytime on this page to launch directly into an undetectable about:blank cloak window.
MAX_TAG_LEN) {
from = start + 7;
continue;
}
const closeEnd = lower.indexOf('>', close);
if (closeEnd === -1) break;
if (isTrackerScript(html.slice(start, gt + 1), html.slice(gt + 1, close))) {
out += html.slice(cursor, start);
cursor = closeEnd + 1;
}
from = closeEnd + 1;
}
return out + html.slice(cursor);
}
// Index just after the first well-formed `` tag, or -1.
function openTagEnd(lower, name) {
let from = 0;
for (let attempt = 0; attempt < 20; attempt++) {
const start = lower.indexOf(`<${name}`, from);
if (start === -1) return -1;
const end = /[\s>/]/.test(lower.charAt(start + name.length + 1)) ? lower.indexOf('>', start) : -1;
if (end !== -1 && end - start <= MAX_TAG_LEN) return end + 1;
from = start + 1;
}
return -1;
}
function sanitizeGameHtml(html) {
if (typeof html !== 'string') return '';
if (html.includes(STUB)) return html;
const stripped = stripTrackers(html);
const lower = stripped.toLowerCase();
let end = openTagEnd(lower, 'head');
if (end < 0) end = openTagEnd(lower, 'html');
if (end < 0) end = openTagEnd(lower, '!doctype');
return end < 0 ? STUB + stripped : stripped.slice(0, end) + STUB + stripped.slice(end);
}
// True when the page declares its own . A page that sets one knows where its files are, so it keeps it.
function hasBaseTag(lower) {
let from = 0;
for (let attempt = 0; attempt < 50; attempt++) {
const at = lower.indexOf('/]/.test(lower.charAt(at + 5))) return true;
from = at + 5;
}
return false;
}
// The folder a page was loaded from, with no query or fragment. '' when the address is not a usable web address.
function baseDirectory(url) {
const safe = safeHttpUrl(url);
if (!safe) return '';
try {
return new URL('.', safe).href;
} catch (error) {
return '';
}
}
const escapeAttr = (text) => String(text).replace(/&/g, '&').replace(/"/g, '"').replace(//g, '>');
// A game fetched as text and run through srcdoc has no address of its own, so its relative files (images, sounds,
// scripts) would be looked up next to this page and 404. A pointing at the folder it came from fixes that.
function prepareGameHtml(html, baseUrl) {
const clean = sanitizeGameHtml(html);
const href = baseDirectory(baseUrl);
if (!href || hasBaseTag(clean.toLowerCase())) return clean;
const at = clean.indexOf(STUB);
if (at < 0) return clean;
return `${clean.slice(0, at)}${clean.slice(at)}`;
}
// Chicken Kings Vault pages are wrappers: a decoy page whose