Created
June 25, 2012 06:19
-
-
Save dpatti/2986952 to your computer and use it in GitHub Desktop.
Trello Card CSV Bookmarklet
This file contains 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
var url = document.location.href; | |
var match = url.match(/\/board\/.+?\/([0-9a-f]+)/); | |
if (match) { | |
$.get("/1/boards/" + match[1], { cards: 'all' }, function(resp){ | |
var cardGroups = _.groupBy(resp.cards, function(i){ return i.idList; }); | |
console.log( | |
_.map(_.values(cardGroups), function(i) { | |
return _.pluck(i, 'name').join(",") | |
}).join("\n") | |
); | |
}, 'json'); | |
} |
This file contains 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
javascript:var url=document.location.href;var match=url.match(/\/board\/.+?\/([0-9a-f]+)/);if(match){$.get("/1/boards/"+match[1],{cards:'all'},function(resp){var cardGroups=_.groupBy(resp.cards,function(i){return i.idList;});console.log(_.map(_.values(cardGroups),function(i){return _.pluck(i,'name').join(",")}).join("\n"));},'json');} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment