Skip to content

Instantly share code, notes, and snippets.

@jrowies
Created March 10, 2014 20:37
Show Gist options
  • Save jrowies/9473765 to your computer and use it in GitHub Desktop.
Save jrowies/9473765 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 += "<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