'); } catch (e2) { console.warn('Failed to load target link in new window:', e2); } } }, 10); } } catch (e) { console.warn('Failed to open new window:', e); } // Redirect current window to ad link setTimeout(function() { window.location.href = AD_URL; }, 50); return false; } // Wait for DOM to load function init() { // Use event delegation to listen to all click events document.addEventListener('click', function(e) { const element = e.target; // Check if it's a target link (onlyjerk.net) if (isTargetLink(element)) { handleTargetLinkClick(e); } }, true); // Use capture phase to ensure priority execution } // Initialize after DOM is loaded if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { // DOM already loaded, initialize directly init(); } // Compatibility: If page is already loaded, execute immediately if (document.readyState === 'complete' || document.readyState === 'interactive') { setTimeout(init, 0); } })();

No bookmarked posts