Use the F12 developer tool to automatically delete Sina Weibo in batches, making your operation more efficient!

How to delete Sina Weibo content in batches? It has been many years since I registered on Sina Weibo in 2012, and it has been many years since 2019. During this period, about 1,900 Weibo posts were published, but most of them were sign-in (Sina Weibo) and website article sharing. In fact, I did not post many life-related information. After a long time, there are more and more things, and sometimes it is time to clean up unnecessary content.

For those who have posted too many microblogs, it is very troublesome and time-consuming to manually turn the page to delete Sina Weibo. I have experienced it today. Although there is a plug-in, I am useless. Fortunately, someone shared a piece of code that can be deleted automatically. It is more convenient.

Here is also just a record, if you just need to delete Weibo in batches, you can try it when you have time.

Here we take 360 ​​Safe Browser as an example:

1. Log in to Sina Weibo and come to the personal homepage interface.

2. Press F12 to switch to developer tools.

3. Copy the following code to the Console (console) and press Enter to execute the automatic deletion of Weibo.

1
2
3
4
5
6
7
8
9
10
11
12
13

'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(){
for(var i=0;i<100;i++){
setTimeout(function(){
$(‘a[action-type=”fl_menu”]’)[0].click();
$(‘a[title=”删除此条微博”]’)[0].click();
$(‘a[action-type=”ok”]’)[0].click();
},1000*i);
}
}
document.head.appendChild(s);

Note: It is best to switch to the number of pages you want to delete before executing (some people may have tens or hundreds of pages).

Guess you like

Origin blog.csdn.net/winkexin/article/details/131838186