'; } // Facebook if (url.match(/facebook\.com/)) { const encoded = encodeURIComponent(url); return ''; } // Instagram match = url.match(/instagram\.com\/(?:p|reel)\/([a-zA-Z0-9_-]+)/); if (match) { return '
View on Instagram
'; } // Odysee match = url.match(/odysee\.com\/@([^:]+):([^\/]+)\/([^:]+):([a-z0-9]+)/); if (match) { return ''; } // Bitchute match = url.match(/bitchute\.com\/video\/([a-zA-Z0-9]+)/); if (match) { return ''; } return '

Video URL: ' + escapeHtml(url) + '

'; } // Close lightbox on escape key document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { closeLightbox(); } }); // Close lightbox when clicking outside document.getElementById('lightbox').addEventListener('click', function(e) { if (e.target === this) { closeLightbox(); } });