document.addEventListener("DOMContentLoaded", function() { // Adiciona title em todos os iframes sem title document.querySelectorAll("iframe:not([title])").forEach(function(iframe) { var src = iframe.src || ""; if (src.includes("youtube")) { iframe.setAttribute("title", "Vídeo do YouTube"); } else if (src.includes("spotify")) { iframe.setAttribute("title", "Player do Spotify"); } else if (src.includes("google")) { iframe.setAttribute("title", "Conteúdo do Google"); } else { iframe.setAttribute("title", "Conteúdo incorporado"); } });// Adiciona aria-label em links sem texto visível (ícones sociais etc) document.querySelectorAll("a:not([aria-label])").forEach(function(link) { if (link.textContent.trim() === "" && !link.getAttribute("aria-label")) { var href = link.href || ""; if (href.includes("facebook")) link.setAttribute("aria-label", "Facebook"); else if (href.includes("twitter") || href.includes("x.com")) link.setAttribute("aria-label", "Twitter / X"); else if (href.includes("instagram")) link.setAttribute("aria-label", "Instagram"); else if (href.includes("youtube")) link.setAttribute("aria-label", "YouTube"); else if (href.includes("linkedin")) link.setAttribute("aria-label", "LinkedIn"); else if (href.includes("telegram")) link.setAttribute("aria-label", "Telegram"); else if (href.includes("spotify")) link.setAttribute("aria-label", "Spotify"); else if (href.includes("tiktok")) link.setAttribute("aria-label", "TikTok"); else if (href.includes("twitch")) link.setAttribute("aria-label", "Twitch"); else link.setAttribute("aria-label", "Link"); } });});

Bitcoin21BB