Skip to content

Instantly share code, notes, and snippets.

@danielnc
Last active August 29, 2015 14:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Audible export library markdown
"|Book Cover|URL|\n|:-----|----|" + _.map(_.sortBy($('.adbl-lib-content tbody tr td[name=titleInfo] a[name=tdTitle]:visible'), function(elem) {
return elem.innerText
}), function(elem) {
img = $(elem).parent().siblings("td[name='productCover']").find("img").attr("src")
return "|" + ['![alt tag](', img, ')'].join('') + "|" + [elem.innerText, '](', elem.href, ')'].join('') + "|";
}).join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment