const links = document.querySelectorAll('a[role="menuitem"]'); links.forEach(link => { link.tabIndex = 0; });