Skip to content

Instantly share code, notes, and snippets.

View stevenlivz's full-sized avatar

Steven Livingstone-Perez stevenlivz

View GitHub Profile
@stevenlivz
stevenlivz / ExportKindle.js
Last active February 7, 2019 13:00 — 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 CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {