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
1 QPS calculation (number of queries per second) ...
Mac node delete and reinstall delete node -v sudo...
Table of contents 1. Introduction 2. Main text 2....
1. The div css mouse hand shape is cursor:pointer;...
Preface This article introduces the use of vue-ro...
The vue project implements an upgraded version of...
Preface If you are like me, as a hard-working Jav...
The use of computed in vue3. Since vue3 is compat...
This article shares the specific code for JavaScr...
When using MySQL, dates are generally stored in f...
Local Windows remote desktop connects to Alibaba ...
1. Check the firewall status Check the firewall s...
Table of contents 1. watch monitoring properties ...
I encountered a very unusual parameter garbled pro...
This article shares with you a detailed tutorial ...