Skip to content

Instantly share code, notes, and snippets.

View viatsko's full-sized avatar

Valerii Iatsko viatsko

  • Google
  • Zurich, Switzerland
  • 03:27 (UTC +02:00)
View GitHub Profile
@viatsko
viatsko / ExportKindle.js
Created August 27, 2017 16:05 — 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', '2', '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) {