Skip to content

Commit 6b9fcac

Browse files
committed
Slack: Kill some extraneous white space (particularly in Chrome).
1 parent db3c6e7 commit 6b9fcac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SlackA11yFixes.user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ function onNodeAdded(target) {
8484
elem.setAttribute("role", "heading");
8585
elem.setAttribute("aria-level", "2");
8686
}
87+
// Kill some extraneous white space.
88+
for (elem of target.querySelectorAll(".message_gutter, i.copy_only br")) {
89+
elem.setAttribute("aria-hidden", "true");
90+
}
8791
}
8892

8993
function onClassModified(target) {

0 commit comments

Comments
 (0)