转载于知乎: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);

 

posted on 2021-05-07 13:55  十行道人  阅读(1483)  评论(0编辑  收藏  举报