From c7926a3aad4b0456186c35c8e79112878ff5051a Mon Sep 17 00:00:00 2001 From: alekssamos Date: Fri, 17 Dec 2021 21:46:33 +0300 Subject: [PATCH] Accessibility attributes for the blind Making the button available for screen readers --- vot.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vot.user.js b/vot.user.js index c0c971a8..969bbdd6 100644 --- a/vot.user.js +++ b/vot.user.js @@ -20,7 +20,7 @@ GM_addStyle(styles); const fragment = new DocumentFragment(); const span = $(""); -$(span).addClass("translation-btn"); +$(span).addClass("translation-btn").attr("role", "button").attr("aria-label", "Перевести видео").attr("tabindex","0"); fragment.appendChild(span[0]); const audio = new Audio();