Original link: http://afoo.me/posts/2022-10-31-how-to-delete-weibo.html
How to delete all content of Weibo? – Teacher Supporting the Wall: Thinking and Precipitation of an Architect
How to delete all content of Weibo?
Wang Fuqiang
2022-10-31
If you don’t have a superficial technical background, it is recommended to search the Internet for related plug-ins that delete Weibo content. The following script at least needs to know what is devtools.
Go to the personal Weibo homepage, open the browser’s devtools, paste and execute the following code in the console:
setInterval (() => { document . querySelectorAll ( 'i[title="更多"]' )[ 0 ] . click () setTimeout (() => { a = document . getElementsByClassName ( 'woo-box-flex woo-box-alignCenter woo-pop-item-main' ) a = Array . from (a) b = a . find (i => i . innerText == '删除' ) b . click () setTimeout (() => { [ ... document . querySelectorAll ( '.woo-modal-main button' )] . filter (i => i . innerText == '确定' )[ 0 ] . click () } , 1000 ) } , 2000 ) } , 3000 )
The above code has been slightly modified from other people’s code many years ago. It does not rule out that if the later Weibo is revised, the above code will not work.
NOTE
- The reason why the timeout time is set to seconds is that the speed will be limited if the setting is too small.
GL&HF
Everything is homebrewed with pandoc and Markdown , little Scala also included.
This article is reproduced from: http://afoo.me/posts/2022-10-31-how-to-delete-weibo.html
This site is for inclusion only, and the copyright belongs to the original author.