Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
扫描全能王网页版批量下载, 解除文件夹下载限制
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