1.用Chrome登錄微博
2.點我的主頁
3.往下翻到翻不動為止,想刪哪一頁就選哪一頁
4.復制以下代碼
// ==UserScript==
// @name Weibored.js
// @namespace http://vito.sdf.org
// @version 0.2.0
// @description 刪除所有微博
// @author https://www.cnblogs.com/evilphp/
// @match https?:\/\/weibo.com/p/*
// @grant none
// ==/UserScript==
'use strict';
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');
}, 800);
};
document.head.appendChild(s);
5.按F12打開控制台,點console,復制代碼回車就不用管了,這一頁的微博會自動刪除。一次刪不完繼續復制代碼再回車直到該頁微博全部刪完。
ps。用此方法可以快速刪除微博,刪除不能恢復,謹慎!