Skip to content

Instantly share code, notes, and snippets.

@mopperwhite
Created June 6, 2017 18:54
Show Gist options
  • Save mopperwhite/d06ad498288b2c295053cb764a7c28eb to your computer and use it in GitHub Desktop.
Save mopperwhite/d06ad498288b2c295053cb764a7c28eb to your computer and use it in GitHub Desktop.
如何在Chrome上批量删除微博
let start_at = 0 // 从第0个开始删
let end_at = 10 // 删到第9个
let aa=Array.prototype.slice.apply(document.querySelectorAll('.WB_feed_detail .W_ficon.ficon_arrow_down.S_ficon')).slice(start_at,end_at)
for(let i=0; i<aa.length; i++){
setTimeout( () => {
aa[i].click()
document.querySelector('[title="删除此条微博"]').click()
document.querySelector('.layer_mini_opt .W_btn_a').click()
}, i*1000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment