Skip to content

Commit 46967fb

Browse files
committed
GitHub: Ensure the fork name is included in the label for the fork selector buttons when comparing branches/creating pull requests.
Fixes #3.
1 parent c30fc60 commit 46967fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitHubA11yFixes.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function onNodeAdded(target) {
7373
} else if (res[1] == "compare") {
7474
// Branch selector buttons.
7575
// These have an aria-label which masks the name of the branch, so kill it.
76-
for (elem of target.querySelectorAll("button.branch"))
76+
for (elem of target.querySelectorAll("button.select-menu-button"))
7777
elem.removeAttribute("aria-label");
7878
}
7979
if (["pull", "commit"].indexOf(res[1]) >= 0 && res[2]) {

0 commit comments

Comments
 (0)