├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── arrow.png ├── coderstats ├── coderstats.js ├── logo-128x128.png ├── logo-48x48.png └── manifest.json ├── screenshot_coderstats_yaph.png └── screenshot_github_coderstats_yaph.png /.gitignore: -------------------------------------------------------------------------------- 1 | coderstats/vendor/* 2 | *.zip 3 | promo_small.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2013 by Ramiro Gómez (http://ramiro.org/) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | build: 2 | zip -r /tmp/coderstats.zip coderstats/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CoderStats Browser Extensions for Chrome 2 | 3 | Install the [Coderstats link for Github](https://chrome.google.com/webstore/detail/necogepejonacpphmlmcagmbjaogpbng) Chrome extension from the Chrome Web Store. 4 | -------------------------------------------------------------------------------- /arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderstats/cxt_coderstats/a45be7d98707a710e2328b849a0e4fa66b4344b6/arrow.png -------------------------------------------------------------------------------- /coderstats/coderstats.js: -------------------------------------------------------------------------------- 1 | const meta_profile = document.querySelector('meta[property="profile:username"]'); 2 | if (login = meta_profile.getAttribute('content')) { 3 | if (details = document.getElementsByClassName('vcard-details')) { 4 | addLink('http://coderstats.github.io/github#' + login); 5 | } 6 | } 7 | 8 | 9 | function addLink(url) { 10 | const cslink = document.getElementById('coderstats'); 11 | if (cslink) return; 12 | 13 | const li = document.createElement('li'); 14 | li.setAttribute('id', 'coderstats'); 15 | li.setAttribute('class', 'vcard-detail pt-1'); 16 | li.setAttribute('itemprop', 'url'); 17 | 18 | const span = document.createElement('span'); 19 | span.setAttribute('class', 'octicon'); 20 | span.setAttribute('style', 'margin-top:-2px;'); 21 | span.textContent = "📊"; 22 | li.appendChild(span) 23 | 24 | const a = document.createElement('a'); 25 | a.setAttribute('href', url); 26 | a.textContent = "CoderStats('" + login + "')"; 27 | 28 | li.appendChild(a); 29 | details[0].appendChild(li); 30 | } 31 | -------------------------------------------------------------------------------- /coderstats/logo-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderstats/cxt_coderstats/a45be7d98707a710e2328b849a0e4fa66b4344b6/coderstats/logo-128x128.png -------------------------------------------------------------------------------- /coderstats/logo-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderstats/cxt_coderstats/a45be7d98707a710e2328b849a0e4fa66b4344b6/coderstats/logo-48x48.png -------------------------------------------------------------------------------- /coderstats/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 3, 3 | "version": "3.0.0", 4 | "homepage_url": "http://coderstats.github.io/", 5 | "name": "CoderStats link for Github Coders", 6 | "description": "Display a link to the CoderStats page for the currently displayed GitHub user when browsing github.com.", 7 | "icons": { 8 | "48": "logo-48x48.png", 9 | "128": "logo-128x128.png" 10 | }, 11 | "content_scripts": [{ 12 | "matches": ["https://github.com/*"], 13 | "js": ["coderstats.js"], 14 | "run_at": "document_end" 15 | }] 16 | } 17 | -------------------------------------------------------------------------------- /screenshot_coderstats_yaph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderstats/cxt_coderstats/a45be7d98707a710e2328b849a0e4fa66b4344b6/screenshot_coderstats_yaph.png -------------------------------------------------------------------------------- /screenshot_github_coderstats_yaph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coderstats/cxt_coderstats/a45be7d98707a710e2328b849a0e4fa66b4344b6/screenshot_github_coderstats_yaph.png --------------------------------------------------------------------------------