Skip to content

Instantly share code, notes, and snippets.

@jkubecki
jkubecki / select_all_pocket.js
Created November 8, 2016 18:35
Select all items in Pocket in edit mode
$("li.item").each(function() { $(this).addClass('item_bulkeditselected'); });
@jkubecki
jkubecki / ExportKindle.js
Last active June 1, 2024 22:51
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) {