1:進入自己的微博,頁面一定要切換到看自己微博的頁面
2:按你鍵盤上第一排的 F12
3: 點擊進入Console
4:復制下面的代碼,粘貼進去,按你鍵盤的enter 。就ok啦。
// ==UserScript== // @name Weibored.js // @namespace https://vito.sdf.org // @version 0.2.0 // @description 刪除所有微博 // @author Vito Van // @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'); }, 1200); }; document.head.appendChild(s);
5.刪除一頁后,會自動刷新頁面,代碼也會自動停止。
6.繼續在console中粘貼代碼,繼續按回車執行。
7.原創人的代碼地址:
https://greasyfork.org/zh-CN/scripts/14709-weibored-js/code?version=213335