如何快速删除微博帖子 | 牧天的酒吧

如何快速删除微博帖子

2021-10-11 16:20:09 于 技术

1.进入自己的微博主页(网页端)
2.按F12,调出开发者工具
3.点击console,将以下代码复制进去,直接回车,即可删除当前页面帖子。

'use strict';
var s1 = document.createElement('script');
s1.setAttribute('src','https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js');
s1.onload = function() {
    setInterval(function() {
        if (!$('a[action-type="feed_list_delete"]')) {
            $('a.next').click();
        } else {
            $('a[action-type="feed_list_delete"]')[0].click();
            $('a[action-type="ok"]')[0].click();
        }
    }, 800);
};
document.head.appendChild(s1);

4.重复第3步,直至删除所有不想要的帖子

回主页