Created
March 10, 2014 20:37
-
-
Save jrowies/9473765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub plain issues list | |
// @namespace some namespace | |
// @version 0.1 | |
// @description some description | |
// @match https://github.com/* | |
// @copyright 2014+, Jorge Rowies | |
// ==/UserScript== | |
var htmlList = ""; | |
htmlList += "<div>"; | |
htmlList += $(".list-group-item-name a").map(function() { | |
var link = $(this).attr("href"); | |
var issueId = link.substring(link.indexOf('/issues/') + 8); | |
return "<p>" + $(this).text() + " (<a href='" + link + "'>" + "issue #" + issueId + "</a>)</p>"; | |
}).get().join(""); | |
htmlList += "</div>"; | |
$(".issues-list").append(htmlList); | |
//console.log(htmlList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment