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

Appearance settings

Commit 6b1ea66

Browse filesBrowse files
committed
adjusted to github dom changes
1 parent 83de84e commit 6b1ea66
Copy full SHA for 6b1ea66

File tree

1 file changed

+6
-4
lines changed
Filter options

1 file changed

+6
-4
lines changed

‎coderstats/data/coderstats.js

Copy file name to clipboardExpand all lines: coderstats/data/coderstats.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
33
var login = m[1];
44
if (-1 === ['timeline', 'languages', 'blog', 'explore'].indexOf(login)) {
55
var url = 'http://coderstats.net/github/' + login.trim() + '/';
6-
var details = document.getElementsByClassName('details');
6+
var details = document.getElementsByClassName('vcard-details');
77
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);
1113
}
1214
}
1315
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.