File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 55// @author James Teh <jamie@jantrid.net>
66// @copyright 2011 James Teh
77// @license GNU General Public License version 2.0
8- // @version 0.20111210.03
8+ // @version 0.20111212.01
99// @include https://twitter.com/*
1010// @include http://twitter.com/*
1111// ==/UserScript==
@@ -26,11 +26,10 @@ function onAttrModified(evt) {
2626 // Twitter doesn't use real focus for this, so screen readers don't know which tweet has focus.
2727 // Force real focus.
2828 lastFocusedTweet = target ;
29- if ( ! target . getAttribute ( "role " ) ) {
29+ if ( ! target . getAttribute ( "tabindex " ) ) {
3030 // Make the node focusable and accessible.
3131 target . setAttribute ( "tabindex" , "-1" ) ;
32- target . setAttribute ( "role" , "listitem" ) ;
33- target . setAttribute ( "aria-selected" , "true" ) ;
32+ // Unfortunately, changing the role causes Gecko to lag.
3433 }
3534 var orig = target . getElementsByClassName ( "original-tweet" ) [ 0 ] ;
3635 target . setAttribute ( "aria-label" , (
You can’t perform that action at this time.
0 commit comments