Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
批量从亚马逊中国区下载kindle上购买的电子书
var curIndex = -1;
function callbackDown(){
if(curIndex >=0) $('input.hideItem_myx')[curIndex].click();
curIndex++;
$('input.hideItem_myx')[curIndex].click();
$('ul button.myx-button-text')[curIndex].click();
//触发下载popup
setTimeout(function(){$('.myx-popover-inner .transcludedContent_myx .contentDetails_myx #contentAction_download_myx').trigger('click');},1000);
setTimeout(function(){$('.dialog_myx .myx-button-primary').trigger('click');},2000);
if(curIndex < $('input.hideItem_myx').length) setTimeout(callbackDown,3000);
}
callbackDown();
@yumenchen
Copy link

yumenchen commented Jul 29, 2022

先删除所有的样章,样章会导致下载失败,从而中断下载

非常感谢,删除样章后顺利下载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment