From a986bc2a6ff3c13169782a9258b931a7c0e03da8 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Thu, 19 Oct 2017 15:45:57 +0100 Subject: Recognise aria-role=tab elements as clickable In particular, these are used in the current (2017-10-19) version of YouTube. This fixes #2730. --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index d9ce5d06..f3e0ac84 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -660,7 +660,7 @@ LocalHints = # Check for attributes that make an element clickable regardless of its tagName. if (element.hasAttribute("onclick") or - element.getAttribute("role")?.toLowerCase() in ["button", "link"] or + element.getAttribute("role")?.toLowerCase() in ["button" , "tab" , "link"] or element.getAttribute("contentEditable")?.toLowerCase() in ["", "contentEditable", "true"]) isClickable = true -- cgit v1.2.3