Skip to content

Instantly share code, notes, and snippets.

@patbenatar
Created October 12, 2012 23:39
Show Gist options
  • Save patbenatar/3882290 to your computer and use it in GitHub Desktop.
Save patbenatar/3882290 to your computer and use it in GitHub Desktop.
Format GitHub issues as a simple newline separated string
// GitHub already has jQuery loaded, so we can use it for free!
titles = []; $(".info-wrapper h3 a").each(function () { number = $(this).closest("td").prev("td.number").text().match(/\d+/)[0]; titles.push("#" + number + " " + $(this).text()) }); titles.join("\n");
@bobbytables
Copy link

titles = []; $(".info-wrapper h3 a").each(function () { number = $(this).closest("td").prev("td.number").text().match(/\d+/)[0]; titles.push("#" + number + " " + $(this).text()) }); titles.join("\n");

@bobbytables
Copy link

Accidentally commented =P

@patbenatar
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment