document.addEventListener("DOMContentLoaded", function () { // Find all horizontal navigation links pointing to the image selector let selectorLinks = document.querySelectorAll('a[href*="image-selector"]'); const externalLinkIcon = ` `; selectorLinks.forEach(function (link) { // 1. Set to open in a new tab link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); // 2. Check if the icon has already been added (prevent duplicate icons if script runs multiple times) if (!link.innerHTML.includes('