Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save litodam/9477964 to your computer and use it in GitHub Desktop.
Save litodam/9477964 to your computer and use it in GitHub Desktop.
// ==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