Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb72b97f

Browse files
committed
make ext work on both user and organization pages which have different markup on Github
1 parent603adc2 commitb72b97f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎coderstats/README‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
DESCRIPTION
2-
The Coderstats link for Github Chrome extension displays a link to the Coderstats page for the currentlydisplay user profile page on http://github.com.
2+
The Coderstats link for Github Chrome extension displays a link to the Coderstats page for the currentlydisplayed user profile page on http://github.com.

‎coderstats/coderstats.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
varurl='http://coderstats.geeksta.net/coder/'+$('span[itemprop="nickname"]').text();$('.page-profile .vcard').append('<dl><dt>Coderstats</dt><dd><a href="'+url+'">'+url+'</a></dd></dl>');
1+
varnick=$('span[itemprop]="nickname"').text();// assume user page
2+
if(!nick)nick=$('.pagehead.userpage').attr('data-name');// org page
3+
varurl='http://coderstats.geeksta.net/coder/'+$.trim(nick);$('.page-profile .vcard').append('<dl><dt>Coderstats</dt><dd><a href="'+url+'">'+url+'</a></dd></dl>');
24

‎coderstats/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"Coderstats link for Github",
3-
"version":"1.1",
3+
"version":"1.2",
44
"description":"Display a link to the Coderstats page for the currently displayed user on github.com.",
55
"icons":
66
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp