File tree 1 file changed +6
-4
lines changed
Filter options
1 file changed +6
-4
lines changed
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
3
3
var login = m [ 1 ] ;
4
4
if ( - 1 === [ 'timeline' , 'languages' , 'blog' , 'explore' ] . indexOf ( login ) ) {
5
5
var url = 'http://coderstats.net/github/' + login . trim ( ) + '/' ;
6
- var details = document . getElementsByClassName ( 'details' ) ;
6
+ var details = document . getElementsByClassName ( 'vcard- details' ) ;
7
7
if ( details . length > 0 ) {
8
- var dl = document . createElement ( 'dl' ) ;
9
- dl . innerHTML = '<dt><span class="octicon octicon-link"></span></dt><dd><a href="' + url + '">CoderStats(\'' + login + '\')</a></dd>' ;
10
- details [ 0 ] . appendChild ( dl ) ;
8
+ var li = document . createElement ( 'li' ) ;
9
+ li . setAttribute ( 'class' , 'vcard-detail' ) ;
10
+ li . setAttribute ( 'itemprop' , 'url' ) ;
11
+ li . innerHTML = '<span class="octicon octicon-link"></span><a href="' + url + '">CoderStats(\'' + login + '\')</a>' ;
12
+ details [ 0 ] . appendChild ( li ) ;
11
13
}
12
14
}
13
15
}
You can’t perform that action at this time.
0 commit comments