Skip to content

Commit e2745a2

Browse files
committed
GitHub: Remove headings from folder and file lists.
1 parent d1965bf commit e2745a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

GitHubA11yFixes.user.js

Lines changed: 5 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 Mozilla Corporation, Derek Riemer
6+
// @copyright 2019-2024 Mozilla Corporation, Derek Riemer
77
// @license Mozilla Public License version 2.0
8-
// @version 2019.1
8+
// @version 2024.1
99
// @include https://github.com/*
1010
// ==/UserScript==
1111

@@ -160,6 +160,9 @@ const DYNAMIC_TWEAKS = [
160160
// Remove aria-description from things with hovercards.
161161
{selector: '[data-hovercard-url][aria-description]',
162162
tweak: el => el.removeAttribute("aria-description")},
163+
// Remove headings from folder and file lists.
164+
{selector: 'table[aria-labelledby=folders-and-files] :is(h2, h3)',
165+
tweak: makePresentational},
163166
];
164167

165168
/*** Lights, camera, action! ***/

0 commit comments

Comments
 (0)