Skip to content

Commit a8af92d

Browse files
committed
GitHub: Make the add line comment buttons always visible.
Recently, GitHub changed these so that they only appear on hover, which is nasty for screen reader users. Fixes #30.
1 parent c46b381 commit a8af92d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

GitHubA11yFixes.user.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// @namespace http://axSgrease.nvaccess.org/
44
// @description Improves the accessibility of GitHub.
55
// @author James Teh <jteh@mozilla.com>
6-
// @copyright 2019-2024 Mozilla Corporation, Derek Riemer
6+
// @copyright 2019-2025 Mozilla Corporation, Derek Riemer
77
// @license Mozilla Public License version 2.0
8-
// @version 2024.2
8+
// @version 2025.1
99
// @include https://github.com/*
1010
// ==/UserScript==
1111

@@ -136,6 +136,11 @@ const DYNAMIC_TWEAKS = [
136136
if (code && comment) {
137137
makeElementOwn(cell, [code, comment]);
138138
}
139+
if (comment) {
140+
// These buttons only appear on hover, which sucks for screen reader users.
141+
// Make them always visible.
142+
comment.style.display = "block";
143+
}
139144
}},
140145
// Make non-comment events into headings; e.g. closing/referencing an issue,
141146
// approving/requesting changes to a PR, merging a PR. Exclude commits and

0 commit comments

Comments
 (0)