Skip to content

Instantly share code, notes, and snippets.

@huihuimoe
Created September 28, 2018 18:03
Show Gist options
  • Save huihuimoe/582727544c698118dcaf758debdaddfe to your computer and use it in GitHub Desktop.
Save huihuimoe/582727544c698118dcaf758debdaddfe to your computer and use it in GitHub Desktop.
批量删除微博
  • 先打开 https://weibo.com/profile

  • 滚动加载完一页

  • 打开开发者控制台

  • 在 Console 里输入下面的脚本

  • 等待运行完成

  • 刷新看看有没有被删除了

(async () => {
for (let e of document.querySelectorAll('[action-type=feed_list_item]')){
let mid = e.getAttribute("mid")
console.log("正在删除: " + mid)
await fetch("https://weibo.com/aj/mblog/del?ajwvr=6", {
"credentials":"include",
"headers":{"content-type":"application/x-www-form-urlencoded"},
"body":"mid="+mid,
"method":"POST"
})
}
console.log("这页删完啦")
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment