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

Commitf59dc3c

Browse files
committed
adjusted to new github user/org pages #gklst
1 parent43390d9 commitf59dc3c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎coderstats/coderstats.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
varnick=$('.columns.profilecols"').attr('data-name');// 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>');
1+
varnick=$('em[itemprop="additionalName"]').text();// assume user page
2+
varurl='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>');
43

‎coderstats/manifest.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version":2,
3-
"version":"1.4",
3+
"version":"1.5",
44
"name":"Coderstats link for Github",
55
"description":"Display a link to the Coderstats page for the currently displayed user on github.com.",
66
"icons": {
@@ -9,7 +9,7 @@
99
},
1010
"content_scripts": [{
1111
"matches": ["https://github.com/*"],
12-
"js": ["vendor/jquery-1.7.2.min.js","coderstats.js"],
12+
"js": ["vendor/jquery-1.8.1.min.js","coderstats.js"],
1313
"run_at":"document_end"
1414
}]
1515
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp