Home >Software Tutorial >Mobile Application >What is the one-click unfollow code on Kuaishou?
php editor Yuzai brought a detailed analysis of Kuaishou's one-click unfollow code. In Kuaishou applications, unfollowing is a common requirement, and simple code implementation can make it easier for users to operate. This article will introduce how to write one-click unfollow code so that you can easily manage your watch list in the Kuaishou app.
Kuaishou tutorial
1. Open the Kuaishou web version [https://www.kuaishou.com/].
2. Click the avatar to log in and enter the [Follow] page.
3. Slide the follow page to the bottom.
4. Click [F12] on the keyboard to open the console.
5. Enter the code as follows.
setInterval(function() {
var a = document.getElementsByClassName("follow-button isfollow")
console.log(a)
for (var b = 0; b;b++)>
document.getElementsByClassName("follow-button isfollow")[b].click();
}
}, 2000)
Then click Enter and wait for execution to unfollow all users.
The above is the detailed content of What is the one-click unfollow code on Kuaishou?. For more information, please follow other related articles on the PHP Chinese website!