Last active
August 29, 2015 14:23
-
-
Save danielnc/51ce378824133022b1dd to your computer and use it in GitHub Desktop.
Audible export library markdown
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
"|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