Sign In

Presentation Software

Your compare list

Compare
REMOVE ALL
COMPARE
0
document.addEventListener('DOMContentLoaded', () => { // Event delegation on the main content/container const container = document.body; // or use a specific container if you want container.addEventListener('click', e => { const link = e.target.closest('a'); // Ignore if no link if (!link) return; // Skip internal links const isExternal = link.hostname !== window.location.hostname; if (!isExternal) return; // Optionally skip mailto, tel, or javascript links if (link.href.startsWith('mailto:') || link.href.startsWith('tel:') || link.href.startsWith('javascript:')) return; // Stop other click handlers (theme/plugin) e.stopPropagation(); e.preventDefault(); // Open the affiliate/external link in a new tab window.open(link.href, '_blank'); console.log('Affiliate/external link opened:', link.href); }); });