Skip to content

Instantly share code, notes, and snippets.

View amazon_cloud_reader_hack
(function (){
function getContent(cb){
function getAsin(cb){
var title = $("#KindleReaderIFrame")[0].contentWindow.document.getElementById("kindleReader_title").innerHTML;
KindleDBClient.getAppDb().getTable('bookdata').getRecord({title:title}).done(function(e){cb(e[0].asin)});
};
function getF(asin, cb){
var bookdb =$("#KindleReaderIFrame")[0].contentWindow.KindleReaderBookInfoProviderDB.BookInfoDB(asin);
bookdb.getFragmentIds().done(function(e){
bookdb.getFragments(e).done(cb);