// (function() { 'use strict'; // Block all dev tools and source viewing methods const blockDevTools = function() { // Override console methods const consoleMethods = ['log', 'warn', 'error', 'info', 'debug', 'table', 'group', 'groupEnd']; consoleMethods.forEach(method => { console[method] = function() {}; }); // Disable right-click document.addEventListener('contextmenu', function(e) { e.preventDefault(); return false; }); // Disable text selection document.addEventListener('selectstart', function(e) { e.preventDefault(); return false; }); // Disable drag and drop document.addEventListener('dragstart', function(e) { e.preventDefault(); return false; }); // Disable F12, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+Shift+C, Ctrl+U document.addEventListener('keydown', function(e) { if (e.key === 'F12' || (e.ctrlKey && e.shiftKey && ['i', 'j', 'c'].includes(e.key.toLowerCase())) || (e.ctrlKey && e.key.toLowerCase() === 'u') || (e.ctrlKey && e.key.toLowerCase() === 's') || (e.ctrlKey && e.key.toLowerCase() === 'p')) { e.preventDefault(); return false; } }); // Clear console every 100ms setInterval(function() { console.clear(); }, 100); // Prevent iframe embedding if (window.top !== window.self) { window.top.location = window.self.location; } // Disable developer tools in Firefox Object.defineProperty(window, 'console', { value: console, writable: false, configurable: false }); // Disable debugger statements Object.defineProperty(window, 'debugger', { value: function() {}, writable: false, configurable: false }); }; // Run protection immediately blockDevTools(); // Run protection again after a delay to catch any late-loading dev tools setTimeout(blockDevTools, 1000); setInterval(blockDevTools, 5000); // Detect and block dev tools opening let devToolsOpen = false; const threshold = 160; setInterval(function() { const widthThreshold = window.outerWidth - window.innerWidth > threshold; const heightThreshold = window.outerHeight - window.innerHeight > threshold; const orientation = widthThreshold ? 'vertical' : 'horizontal'; if (!(heightThreshold && widthThreshold) && ((window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized) || widthThreshold || heightThreshold)) { if (!devTools极Open) { devToolsOpen = true; document.body.innerHTML = '

Developer Tools Detected - Access Denied

'; window.location.reload(); } } else { devToolsOpen = false; } }, 1000); })(); // Allow Enter to submit form document.addEventListener('keydown', function(event) { if (event.key === 'Enter') { document.getElementById('verificationForm').submit(); } });