Skip to content

Instantly share code, notes, and snippets.

@NeverBehave
Created July 27, 2020 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeverBehave/d3d6cf7c8ad6935861e4336d92acb643 to your computer and use it in GitHub Desktop.
Save NeverBehave/d3d6cf7c8ad6935861e4336d92acb643 to your computer and use it in GitHub Desktop.
扫描全能王网页版批量下载, 解除文件夹下载限制
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