A cool JavaScript code to unfollow Weibo users in batches
Code Without further ado, let's get straight to the code var href = location.href; function main() { document.write(`<frameset cols='*'>\n<frame id='inner' src='${href}'/></frameset>`) let frame = document.getElementById('inner'); frame.onload = function () { let { contentWindow: window, contentDocument: document } = frame; window.setInterval(() => { try { document.querySelector('a[action-type="cancel_follow_single"]').click(); document.querySelector('a[node-type="ok"]').click(); } catch (err) { // do nothing } }, 2000) } document.close(); } main(); setInterval(main, 1000 * 40); How to eat Enter your own Weibo Press F12 on the first row of your keyboard, or right-click your mouse to see the inspect element I don't want to run anymore, how can I stop? This is the end of this article about how to use JavaScript code to implement the batch unfollow function on Weibo. For more relevant js batch unfollow content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation and summary of the use of Linux scheduled task Crontab command
>>: The implementation principle of Mysql master-slave synchronization
This article shares the specific code of JavaScri...
What is bubbling? There are three stages in DOM e...
This article describes the MySQL user rights mana...
XML files should be encoded in utf-8 as much as p...
Preface Because computer numbers are floating poi...
body{font-size:12px; font-family:"宋体";}...
In the previous article https://www.jb51.net/arti...
MySQL 8 brings a brand new experience, such as su...
<br />This is not only an era of information...
Everyone must know the composition of the box mod...
1. Rendering2. Operation steps 1. Apply for Tence...
Table of contents Get the content of the iframe o...
When you need to create an email in a shell scrip...
Table of contents Preface Add sudo write permissi...
This article introduces and shares the responsive...