Skip to content

Instantly share code, notes, and snippets.

@morja
morja / ExportKindle.js
Last active December 18, 2019 12:13 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a markdown file called "download" which can (and should) be renamed with a .md extension
// modified version of the original script: https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22
// this one exludes samples (EBSP), sorts the results by title and exports a list in markdown format
// it also adds links to the amazon pages of the books
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024);
getAmazonMarkdown = function() {