-
滚动加载完一页
-
打开开发者控制台
-
在 Console 里输入下面的脚本
-
等待运行完成
-
刷新看看有没有被删除了
Created
September 28, 2018 18:03
-
-
Save huihuimoe/582727544c698118dcaf758debdaddfe 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
(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