批量刪除微博代碼


轉載於知乎:https://zhuanlan.zhihu.com/p/140708691  

提醒:1、一次只能刪除1頁微博;2、若彈出錯誤或系統繁忙提示,就把代碼再粘貼一遍,再回車;3、若不想繼續刪,就按F5刷新停止。

 代碼如下:


// ==UserScript== // @name Weibored.js // @namespace https://vito.sdf.org // @version 0.2.0 // @description 刪除所有微博 // @author Vito Van // @match Sina Visitor System // @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);

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM