This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("load", (event) => { | |
let grecaptchaContainer = document.querySelector(".grecaptcha-badge"); | |
if (grecaptchaContainer) { | |
let grecaptchaTextarea = grecaptchaContainer.querySelector("textarea"); | |
let grecaptchaLabel = document.createElement("label"); | |
grecaptchaLabel.textContent = "Recaptcha"; | |
grecaptchaLabel.style.fontSize = "0px"; | |
grecaptchaLabel.setAttribute("for", grecaptchaTextarea.id); | |
grecaptchaContainer.appendChild(grecaptchaLabel); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('load', () => { | |
const anchors = document.querySelectorAll('a'); | |
anchors.forEach(anchor => { // Iterate all the anchors | |
if (anchor.textContent.trim() == "") { // If the anchor is empty add the arial-label | |
anchor.setAttribute('aria-label', 'Go to ' + anchor.href) | |
} | |
}); | |
}); |