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

Commit18fb4ff

Browse files
committed
adjusted to github dom changes
1 parent343c89e commit18fb4ff

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎coderstats/coderstats.js‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
33
varlogin=m[1];
44
if(-1===['timeline','languages','blog','explore'].indexOf(login)){
55
varurl='http://coderstats.net/github/'+login.trim()+'/';
6-
vardetails=document.getElementsByClassName('details');
6+
vardetails=document.getElementsByClassName('vcard-details');
77
if(details.length>0){
8-
vardl=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+
varli=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);
1113
}
1214
}
1315
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp