Skip to content

Commit 320383f

Browse files
committed
GitHub: When viewing changed files, make the header for each changed file a heading.
1 parent b456c63 commit 320383f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GitHubA11yFixes.user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ function onNodeAdded(target) {
4646
}
4747
if (["pull", "commit"].indexOf(res[1]) >= 0 && res[2] == "/") {
4848
// Pull request or commit.
49+
// Header for each changed file.
50+
for (elem of target.querySelectorAll(".file-info"))
51+
makeHeading(elem, 2);
4952
// Lines of code which can be commented on.
5053
for (elem of target.querySelectorAll(".add-line-comment")) {
5154
// Put the comment button after the code instead of before.

0 commit comments

Comments
 (0)