"use strict"; async function solve() { const output = document.getElementById('progressText'); const bar = document.getElementById('progressBar'); // Get challenge from cookie const match = document.cookie.match(/pow_challenge=([^;]+)/); if (!match) { output.innerText = "Error: No challenge cookie found. Please enable cookies."; return; } const challenge = match[1]; output.innerText = "β Checking connection, please wait"; bar.innerText = 'π'; bar.className = 'animate'; const te = new TextEncoder(); let tries = 0; // Get original URL from query params const params = new URLSearchParams(location.search); const _originalUrl = params.get("original") || "/"; // Ignore attempts to redirect out of the site let originalUrl = _originalUrl.replace(new RegExp("^//+"), "/") originalUrl = originalUrl.replace(new RegExp("^[^/]*//.*"), "/") // Capture the original referer so we can forward it on theβ¦