這是網(wǎng)絡(luò)上查找到的 windows 批量刪除微博的代碼歉秫。如果想批量刪除微博蛾洛,具體步驟如下:
1、登錄微博,打開主頁轧膘,拉到最底直到顯示頁碼钞螟,如第1頁;
2谎碍、按F12鍵鳞滨,在展開的對話框中點(diǎn)擊“console”項(xiàng);
3蟆淀、在輸入框中把以下的代碼復(fù)制進(jìn)去拯啦,按回車,微博顯示的當(dāng)前頁面就被全部刪除熔任。
這種刪除是把當(dāng)前的微博頁內(nèi)容刪除褒链,不能刪除沒有顯示出來的其他所有的微博。
// ==UserScript==
// @name? ? ? ? Weibored.js
// @namespacehttps://vito.sdf.org
// @version? ? ? 0.2.0
// @description? 刪除所有微博
// @author? ? ? Vito Van
// @matchhttps://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);