Forked from jrowies/[Tampermonkey] GitHub plain issues list
Last active
August 29, 2015 13:57
-
-
Save litodam/9477964 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 += "<br /><div><ul>"; | |
htmlList += $(".list-group-item-name a").map(function() { | |
var link = $(this).attr("href"); | |
var issueId = link.substring(link.indexOf('/issues/') + 8); | |
return "<li>" + $(this).text() + " (<a href='" + link + "'>" + "#" + issueId + "</a>)</li>"; | |
}).get().join(""); | |
htmlList += "</ul></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