Skip to content

Instantly share code, notes, and snippets.

@standin000
standin000 / send_all_personal_document_kindle
Created June 28, 2013 01:43
send all personal document of kindle by 3G.
javascript:(function()%7Bvar%20v%20%3D%20new%20RegExp(%22PersonalDocuments%22)%3Bif%20(!v.test(document.URL))%20return%20false%3Ba%3Ddocument.getElementsByClassName('rowBodyCollapsed')%3Bid%20%3D%20yourDevices.filterDevicesByCapabilities(yourDevices.ownedDeviceList%2C%5B%22EMAIL_ALIAS_SUPPORTED%22%5D%2C%20nonUpgradeableCapabilities)%5B0%5D.accountID%3Bfor(var%20i%20%3D%200%3B%20i%3Ca.length%3B%20i%2B%2B)%7Bvar%20inputData%20%3D%20%7B%7D%3BinputData%5B'deviceID'%5D%20%3D%20id%3BinputData%5B'contentName'%5D%20%3D%20a%5Bi%5D.getAttribute('asin')%3BinputData%5B'category'%5D%20%3D%20'kindle_pdoc'%3BinputData%5B't'%5D%20%3D%20new%20Date().getTime()%3BinputData%5B'isAjax'%5D%20%3D%201%3BmykJS.ajaxRequest('%2Fgp%2Fdigital%2Ffiona%2Fcontent-download%2Ffiona-ajax.html%2Fref%3Dkinw_myk_sd_exp_send'%2CinputData%2C%20function(data)%20%7Bconsole.debug(data)%3B%7D)%3B%7Dreturn%7D)()