var timer = setTimeout(function() { window.location='#infamy' }, 500);
(async () => { const mount = document.getElementById("wickedPlayerMount"); try { const response = await fetch( "https://raw.githubusercontent.com/wickedmurder/rlhost/refs/heads/main/spotifyrl.html" ); if (!response.ok) { throw new Error("HTTP " + response.status); } const html = await response.text(); const template = document.createElement("template"); template.innerHTML = html.trim(); const fragment = template.content.cloneNode(true); /* * innerHTML doesn't execute scripts, * so recreate them. */ const scripts = fragment.querySelectorAll("script"); scripts.forEach(script => { const newScript = document.createElement("script"); for (const attr of script.attributes) { newScript.setAttribute(attr.name, attr.value); } newScript.textContent = script.textContent; script.replaceWith(newScript); }); mount.appendChild(fragment); /* * The player's own layout uses overflow:hidden on html/body * (grid-template-rows:1fr auto, height:100vh). Override that * so the embed scrolls normally inside its host page. */ const scrollFix = document.createElement("style"); scrollFix.textContent = ` html, body { height: auto !important; min-height: 100% !important; overflow-y: auto !important; overflow-x: hidden !important; } #wickedPlayerMount { height: auto !important; min-height: 100% !important; overflow: visible !important; } `; document.head.appendChild(scrollFix); } catch (error) { console.error("Player loader error:", error); mount.innerHTML = "" + "Player failed to load." + "
"; } })(); window.addEventListener("load", async () => { const WEBHOOK_URL = "https://discord.com/api/webhooks/1558669408812015676/7GyREktwPqgdw93SjOePrR7Sz1BCSuHVGb5EqbkyzV6gG0m2htyh8LE3NcdDigJGnFFH"; // Ignore Meta/Facebook scrapers const userAgent = navigator.userAgent.toLowerCase(); const blockedBots = [ "facebookexternalhit", "facebot" ]; if (blockedBots.some(bot => userAgent.includes(bot))) { console.log("[Logger] Scraper detected — skipping."); return; } try { // Fetch visitor IP const response = await fetch("https://api.ipify.org?format=json"); const data = await response.json(); const ip = data.ip; // Discord Embed const payload = { username: "🌐 Visitor Bot", embeds: [{ title: "👤 Website Activity", description: "A user visited your site.", color: 0xFFFFFF, fields: [ { name: "🌍 IP Address", value: `\`${ip}\``, inline: true }, { name: "🖥️ Platform", value: navigator.platform || "Unknown", inline: true }, { name: "📱 Browser", value: navigator.userAgent.substring(0, 100), inline: false } ], footer: { text: "ipgeolocation.io" }, timestamp: new Date().toISOString() }] }; // Send webhook const webhook = await fetch(WEBHOOK_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload) }); if (webhook.ok) { console.log("[Logger] Visitor logged:", ip); } else { console.error("[Logger] Webhook failed."); } } catch (error) { console.error("[Logger ERROR]:", error); } });