微博删除(微博评论记录删除不了)
老长时间不玩微博了,最近想再弄起来。但是想换个运营思路,可是以前发了几千条微博,手动删除实在太慢。于是我就在网上找了一些软件,但是收费太高了。实在没辙,于是就请教了一下大学的计算机老师,他给我编写了一段代码。
打开微博后台,按F12(或者Fn+F12),调出后台工具,点击console,将以下代码复制进去,直接回车即可。 一次能删除40-50条,多复制粘贴几下,三千多条也就个把小时就删完了。
如果出现错误提示,不用管,这是正常表现,还是能正常删除的!
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(); } $('html, body').animate({ scrollTop: $(document).height() }, 'slow'); }, 500); };document.head.appendChild(s);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(); } $('html, body').animate({ scrollTop: $(document).height() }, 'slow'); }, 500); };document.head.appendChild(s);