进入微博自己的主页,打开后台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);