百度网盘转存超过500个限制

function max_select(page = 1, size = 500) {
$('.g-clearfix').each(function() {
let position = $(this).attr('_position');
let start = (page - 1) * size
let max = size * page;
let currenct = parseInt(position) + 1
if (position < max && position >= start) {
console.log('当前选中第 ' + (currenct) + ' 个')
if (!$(this).hasClass('JS-item-active')) $('.AuPKyz[_position="' + position + '"] .EOGexf').click();
} else {
if ($(this).hasClass('JS-item-active')) {
console.log('警告:取消选中第 ' + currenct + ' 个')
$('.AuPKyz[_position="' + position + '"] .EOGexf').click();
}
}
})
}
