Trending This Week
Featured Games
All Games

zone

by Author
`; win.document.open(); win.document.write(iframeHtml); win.document.close(); } function openInBlobNull() { const cloakTitle = getCloakTitle(); const faviconUrl = getCloakFavicon(); let fullHtml = document.documentElement.outerHTML; fullHtml = fullHtml.replace('gn-math', `${cloakTitle}`); fullHtml = fullHtml.replace(/favicon\.png/g, faviconUrl); fullHtml = fullHtml.replace(/]*rel=["']icon["'][^>]*>/gi, ''); fullHtml = fullHtml.replace(/]*rel=["']apple-touch-icon["'][^>]*>/gi, ''); fullHtml = fullHtml.replace('', ``); const blob = new Blob([fullHtml], {type: 'text/html'}); const blobUrl = URL.createObjectURL(blob); window.open(blobUrl, '_blank'); } function toggleSection(gridId, titleElement) { const grid = document.getElementById(gridId); const arrow = titleElement.querySelector('.collapse-arrow'); if (grid.style.display === 'none') { grid.style.display = 'grid'; arrow.style.transform = 'rotate(0deg)'; } else { grid.style.display = 'none'; arrow.style.transform = 'rotate(-90deg)'; } } function toggleClosePrevention(btn) { const isEnabled = btn.classList.contains('active'); const newState = !isEnabled; if (newState) { localStorage.removeItem('closePreventionEnabled'); } else { localStorage.setItem('closePreventionEnabled', 'false'); } btn.classList.toggle('active'); if (newState) { window.addEventListener('beforeunload', beforeUnloadHandler); } else { window.removeEventListener('beforeunload', beforeUnloadHandler); } } function togglePerformanceMode(btn) { const isEnabled = btn.classList.contains('active'); const newState = !isEnabled; if (newState) { localStorage.removeItem('performanceMode'); document.body.classList.add('performance-mode'); } else { localStorage.setItem('performanceMode', 'false'); document.body.classList.remove('performance-mode'); } btn.classList.toggle('active'); } function beforeUnloadHandler(e) { e.preventDefault(); e.returnValue = ''; return ''; } function setGameSize(size) { localStorage.setItem('gameSize', size); const sizeMap = { 'tiny': '50px', 'small': '100px', 'medium': '150px', 'default': '200px', 'large': '250px', 'xlarge': '300px' }; let styleEl = document.getElementById('gameSizeStyle'); if (!styleEl) { styleEl = document.createElement('style'); styleEl.id = 'gameSizeStyle'; document.head.appendChild(styleEl); } styleEl.textContent = `.grid-layout{grid-template-columns:repeat(auto-fill,minmax(${sizeMap[size]},1fr))}`; } function checkAutoCloak() { if (document.documentElement.dataset.aboutBlank === 'true') { return; } const autoCloak = localStorage.getItem('autoCloak') || 'none'; if (autoCloak !== 'none') { if (autoCloak === 'about:blank') { const win = window.open('about:blank', '_blank'); if (win) { const cloakTitle = getCloakTitle(); const faviconUrl = getCloakFavicon(); let html = document.documentElement.outerHTML; html = html.replace('gn-math', `${cloakTitle}`); html = html.replace(/favicon\.png/g, faviconUrl); html = html.replace(/]*rel=["']icon["'][^>]*>/gi, ''); html = html.replace(/]*rel=["']apple-touch-icon["'][^>]*>/gi, ''); html = html.replace('', ``); win.document.write(html); win.document.close(); window.location.replace('https://www.google.com'); } } else if (autoCloak === 'blob:null') { const cloakTitle = getCloakTitle(); const faviconUrl = getCloakFavicon(); const escapedHtml = document.documentElement.outerHTML .replace(/\\/g, '\\\\') .replace(/`/g, '\\`') .replace(/\$/g, '\\$'); const buttonPageHtml = `Click to Continue