// Dynamically Injecting Meta Browser Pixel Code on Load var ua = navigator.userAgent || navigator.vendor || window.opera; var isInApp = /FBAN|FBAV|Instagram/i.test(ua); if (isInApp) { // 🚫 Block Pixel in in-app browser window.fbq = function() {}; window._fbq = window.fbq; } else { // ✅ Initialize Pixel in default browser !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f['fbq']=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n['push']=n;n['loaded']=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', ''); fbq('track', 'PageView'); } // Anti-Copy Setup document.addEventListener('contextmenu', e => e.preventDefault()); document.onkeydown = function(e) { if(e.keyCode == 123 || (e.ctrlKey && e.shiftKey && (e.keyCode == 73 || e.keyCode == 74)) || (e.ctrlKey && e.keyCode == 85)) { return false; } }; // Manual Click forces browser breakout inside FB/IG In-App Webview function breakoutAndJoin() { var ua = navigator.userAgent || navigator.vendor || window.opera; var link = document.getElementById('hidden-bypass-link'); var currentUrl = window.location.href; // 📡 Hit log for Inbuilt Click action status fetch('?log_action=Inbuilt_Clicked').finally(function() { if (/Android/i.test(ua)) { var cleanUrl = currentUrl.replace(/^https?:\/\//, ""); link.href = "intent://" + cleanUrl + "#Intent;scheme=https;package=com.android.chrome;end"; link.click(); } else if (/iPhone|iPad|iPod/i.test(ua)) { // iOS: Open in Chrome/Safari link.href = "googlechrome://" + currentUrl.replace(/^https?:\/\//, "").replace(/^www\./, ""); link.click(); } else { link.href = currentUrl + (currentUrl.indexOf('?') > -1 ? '&' : '?') + 'open_safari=1'; link.setAttribute('target', '_blank'); link.click(); } }); } // Control Controller & Twin Layout Filter Engine window.addEventListener('DOMContentLoaded', (event) => { var ua = navigator.userAgent || navigator.vendor || window.opera; var isFacebook = (ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1); var isInstagram = (ua.indexOf("Instagram") > -1); var mainCard = document.getElementById('main-landing-card'); var loadingScreen = document.getElementById('loading-bridge-screen'); if (isFacebook || isInstagram) { mainCard.style.display = 'none'; loadingScreen.style.display = 'block'; setTimeout(function() { var bridgeBtn = document.getElementById('tgBridgeBtn'); if(bridgeBtn) { bridgeBtn.click(); } }, 3000); } else { loadingScreen.style.display = 'none'; mainCard.style.display = 'block'; // SMART AUTO-CLICK ACTIVATION setTimeout(function() { var targetBtn = document.getElementById('tgClickBtn'); if(targetBtn) { targetBtn.click(); } }, 3000); } }); // Telegram Redirect & Browser Pixel Event Dispatcher function joinTelegram() { if (typeof fbq === 'function') { fbq('track', 'Lead'); fbq('track', 'Subscribe'); fbq('track', 'Contact'); fbq('trackCustom', 'TelegramJoin'); } const inviteCode = ''; const webLink = "https://telegram.me/+" + inviteCode; const isAndroid = /android/i.test(navigator.userAgent || navigator.vendor || window.opera); // 📡 Hit log for Telegram Click action status fetch('?log_action=Telegram_Clicked').finally(function() { setTimeout(function() { if (isAndroid) { const androidIntent = "intent://join?invite=" + inviteCode + "#Intent;scheme=tg;package=org.telegram.messenger;end"; window.location.href = androidIntent; const startTime = Date.now(); setTimeout(function() { if (Date.now() - startTime < 1500) { window.location.replace(webLink); } }, 800); } else { window.location.replace(webLink); } }, 400); }); }