Skip to content

Commit 3c4e6da

Browse files
philg-devphilc
authored andcommitted
fixes #4481 missing LinkHint for YouTube comment textbox
The text input on YouTube is a weird placeholder element when it's not focused yet. That's the reason why the existing LinkHints logic doesn't detect it as clickable. This element can be identified reliably by it's role="textbox" attribute, so this was added to the list of clickableRoles.
1 parent 4c35085 commit 3c4e6da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content_scripts/link_hints.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ const LocalHints = {
11441144
"menuitemcheckbox",
11451145
"menuitemradio",
11461146
"radio",
1147+
"textbox",
11471148
];
11481149
if (role != null && clickableRoles.includes(role.toLowerCase())) {
11491150
isClickable = true;

0 commit comments

Comments
 (0)