Skip to content

Instantly share code, notes, and snippets.

@danielnc
Last active August 29, 2015 14:23
Show Gist options
  • Save danielnc/51ce378824133022b1dd to your computer and use it in GitHub Desktop.
Save danielnc/51ce378824133022b1dd to your computer and use it in GitHub Desktop.
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