File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
coderstats /vendor /*
2
2
* .zip
3
- promo_small.png
3
+ promo_small.png
Original file line number Diff line number Diff line change 1
- var nick = $ ( 'em[itemprop="additionalName"]' ) . text ( ) ; // assume user page
2
- var url = 'http://coderstats.geeksta.net/coder/' + $ . trim ( nick ) ; $ ( '.details' ) . append ( '<dl><dt><span class="mini-icon mini-icon-link"></span></dt><dd><a href="' + url + '">Coderstats</a></dd></dl>' ) ;
3
-
1
+ var path = document . location . pathname ;
2
+ if ( m = path . match ( / ^ \/ ( [ \w - ] + ) \? ? .* ?/ ) ) {
3
+ var nick = m [ 1 ] ;
4
+ var url = 'http://cs.geeksta.net/github/' + $ . trim ( nick ) ; $ ( '.details' ) . append ( '<dl><dt><span class="mini-icon mini-icon-link"></span></dt><dd><a href="' + url + '">Coderstats</a></dd></dl>' ) ;
5
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
- "version" : " 1.5 " ,
3
+ "version" : " 1.6 " ,
4
4
"name" : " Coderstats link for Github" ,
5
5
"description" : " Display a link to the Coderstats page for the currently displayed user on github.com." ,
6
6
"icons" : {
9
9
},
10
10
"content_scripts" : [{
11
11
"matches" : [" https://github.com/*" ],
12
- "js" : [" vendor/jquery-1.8.1 .min.js" ," coderstats.js" ],
12
+ "js" : [" vendor/jquery-2.0.0 .min.js" ," coderstats.js" ],
13
13
"run_at" : " document_end"
14
14
}]
15
- }
15
+ }
You can’t perform that action at this time.
0 commit comments