进入微博自己的主页,打开后台Console,运行以下代码,即可删除当前页面的所有微博。
PS:原理仍是逐条删除,需要耗费一定的时间,不过可以节省人力。
var s = document.createElement('script');
s.setAttribute(
'src',
'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
s.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();
}
// scroll bottom let auto load
$('html, body').animate({ scrollTop: $(document).height() }, 'slow');
var len = $('div[action-type="feed_list_item"]').length;
if (len < 5) { $('a[class="page next S_txt1 S_line1"]')[0].click(); }
}, 800);
};
document.head.appendChild(s);
这篇博客介绍了一个方法,通过在微博个人主页的浏览器控制台运行特定的JavaScript代码,利用jQuery库实现自动点击删除按钮,从而逐条删除当前页面的微博。此过程旨在节省手动删除的时间,但可能仍需一段时间完成全部操作。

5486

被折叠的 条评论
为什么被折叠?



