Choosing a selection results in a full page refresh.
document.addEventListener("DOMContentLoaded", () => {
const links = document.querySelectorAll("a");
links.forEach(link => {
// Check if the link has text content or an aria-label attribute
const hasTextContent = link.textContent.trim().length > 0;
const hasAriaLabel = link.hasAttribute('aria-label');
// If the link does not have text content or an aria-label, set a default aria-label
if (!hasTextContent && !hasAriaLabel) {
link.setAttribute('aria-label', 'Link');
}
});
});