Skip to content

Instantly share code, notes, and snippets.

@ideasasylum
Created August 10, 2015 12:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideasasylum/ec3efa5bba24920e8e91 to your computer and use it in GitHub Desktop.
Save ideasasylum/ec3efa5bba24920e8e91 to your computer and use it in GitHub Desktop.
Copies a Trello board to the Clipboard as Markdown
// originally found in a comment on: http://www.secretgeek.net/trello_ws
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery(".list:has(.list-header-name)").each(function() {
s.push("\n## " + jQuery(this).find(".list-header-name")[0].innerText + "\n");
jQuery(this).find(".list-card-title").each(function() {
s.push("* " + this.innerText);
});
});
copy(s.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment