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

Commit606a0fd

Browse files
committed
show github link icon next to coderstats link
made changes so the extension can be managed with jpm
1 parent0af2fdc commit606a0fd

File tree

7 files changed

+42
-6
lines changed

7 files changed

+42
-6
lines changed

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.xpi
1+
*.xpi
2+
node_modules

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C)2013 by Ramiro Gómez (http://ramiro.org/)
1+
Copyright (C)2016 by Ramiro Gómez (http://ramiro.org/)
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

‎coderstats/data/coderstats.js‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
55
varurl='http://coderstats.net/github/'+login.trim()+'/';
66
vardetails=document.getElementsByClassName('vcard-details');
77
if(details.length>0){
8+
varlink=document.getElementsByClassName('octicon-link')[0];
9+
810
varli=document.createElement('li');
9-
li.setAttribute('class','vcard-detail');
11+
li.setAttribute('class','vcard-detail pt-1');
1012
li.setAttribute('itemprop','url');
11-
li.innerHTML='<span class="octicon octicon-link"></span><a href="'+url+'">CoderStats(\''+login+'\')</a>';
13+
14+
vara=document.createElement('a');
15+
a.setAttribute('href',url);
16+
a.textContent="CoderStats('"+login+"')";
17+
18+
varsvg=link.cloneNode();
19+
svg.appendChild(link.childNodes[0].cloneNode())
20+
21+
li.appendChild(svg);
22+
li.appendChild(a);
1223
details[0].appendChild(li);
1324
}
1425
}
File renamed without changes.

‎coderstats/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name":"coderstats",
33
"fullName":"CoderStats link for GitHub Coders",
4-
"id":"jid1-HAA0sgdoxNv9aA",
4+
"id":"jid1-HAA0sgdoxNv9aA@jetpack",
55
"description":"Display a link to the CoderStats page for the currently displayed GitHub user when browsing github.com.",
66
"author":"CoderStats",
77
"license":"MIT",
8-
"version":"0.3",
8+
"version":"1.0.0",
99
"homepage":"http://coderstats.net/",
1010
"icon64":"static/logo-64x64.png"
1111
}

‎jpm‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/jpm/bin/jpm

‎package.json‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name":"fxt_coderstats",
3+
"version":"1.0.0",
4+
"description":"",
5+
"main":"index.js",
6+
"dependencies": {
7+
"jpm":"^1.2.2"
8+
},
9+
"devDependencies": {},
10+
"scripts": {
11+
"test":"echo\"Error: no test specified\" && exit 1"
12+
},
13+
"repository": {
14+
"type":"git",
15+
"url":"git+https://github.com/coderstats/fxt_coderstats.git"
16+
},
17+
"author":"Ramiro Gómez",
18+
"license":"MIT",
19+
"bugs": {
20+
"url":"https://github.com/coderstats/fxt_coderstats/issues"
21+
},
22+
"homepage":"https://addons.mozilla.org/en-US/firefox/addon/coderstats/"
23+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp