Weibo - Delete all your followings and posts

Delete all your followings

  1. open Google Chrome
  2. Press F12
  3. click console
  4. paste the codes
1
2
3
4
5
6
7
8
/* 点击批量管理 */
$(".btn_link.S_txt1").click();
/* 勾选全部 */
$$('.member_li').forEach(l => l.click());
/* 点击取消关注 */
$('.W_btn_a[node-type="cancelFollowBtn"]').click();
/* 点击确认按钮 */
$('[node-type="ok"]').click();

Delete all your posts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ==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');
}, 800);
};
document.head.appendChild(s);