Created
July 27, 2020 05:27
-
-
Save NeverBehave/d3d6cf7c8ad6935861e4336d92acb643 to your computer and use it in GitHub Desktop.
扫描全能王网页版批量下载, 解除文件夹下载限制
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const list = [] // 可用于协同检查本地文件列表 | |
const hasChild = (title) => list.includes(title) ? true : list.push(title) && false | |
const text = (e) => e.parentElement.parentElement.children[1].children[0].children[0].textContent | |
inn = 0 | |
document.querySelectorAll('.doc_more_opt').forEach((e) => { | |
setTimeout(() => { | |
const title = text(e) | |
if (!hasChild(title)) { | |
console.log(title) | |
e.click() | |
document.querySelectorAll('.pop_download')[0].click() | |
document.querySelectorAll('.jpg')[1].click() | |
} | |
}, 5000 * inn) | |
inn++ | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment