File tree Expand file tree Collapse file tree 7 files changed +42
-6
lines changed Expand file tree Collapse file tree 7 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 1
- * .xpi
1
+ * .xpi
2
+ node_modules
Original file line number Diff line number Diff line change 1
- Copyright (C) 2013 by Ramiro Gómez (http://ramiro.org/)
1
+ Copyright (C) 2016 by Ramiro Gómez (http://ramiro.org/)
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
this software and associated documentation files (the "Software"), to deal in
Original file line number Diff line number Diff line change @@ -5,10 +5,21 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
5
5
var url = 'http://coderstats.net/github/' + login . trim ( ) + '/' ;
6
6
var details = document . getElementsByClassName ( 'vcard-details' ) ;
7
7
if ( details . length > 0 ) {
8
+ var link = document . getElementsByClassName ( 'octicon-link' ) [ 0 ] ;
9
+
8
10
var li = document . createElement ( 'li' ) ;
9
- li . setAttribute ( 'class' , 'vcard-detail' ) ;
11
+ li . setAttribute ( 'class' , 'vcard-detail pt-1 ' ) ;
10
12
li . setAttribute ( 'itemprop' , 'url' ) ;
11
- li . innerHTML = '<span class="octicon octicon-link"></span><a href="' + url + '">CoderStats(\'' + login + '\')</a>' ;
13
+
14
+ var a = document . createElement ( 'a' ) ;
15
+ a . setAttribute ( 'href' , url ) ;
16
+ a . textContent = "CoderStats('" + login + "')" ;
17
+
18
+ var svg = link . cloneNode ( ) ;
19
+ svg . appendChild ( link . childNodes [ 0 ] . cloneNode ( ) )
20
+
21
+ li . appendChild ( svg ) ;
22
+ li . appendChild ( a ) ;
12
23
details [ 0 ] . appendChild ( li ) ;
13
24
}
14
25
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " coderstats" ,
3
3
"fullName" : " CoderStats link for GitHub Coders" ,
4
- "id" : " jid1-HAA0sgdoxNv9aA" ,
4
+ "id" : " jid1-HAA0sgdoxNv9aA@jetpack " ,
5
5
"description" : " Display a link to the CoderStats page for the currently displayed GitHub user when browsing github.com." ,
6
6
"author" : " CoderStats" ,
7
7
"license" : " MIT" ,
8
- "version" : " 0.3 " ,
8
+ "version" : " 1.0.0 " ,
9
9
"homepage" : " http://coderstats.net/" ,
10
10
"icon64" : " static/logo-64x64.png"
11
11
}
Original file line number Diff line number Diff line change
1
+ node_modules/jpm/bin/jpm
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments