Skip to content

Instantly share code, notes, and snippets.

@xiaoli
Created September 28, 2022 09:59
Show Gist options
  • Save xiaoli/f6afd44d701ff2f5a0b7a0c433683177 to your computer and use it in GitHub Desktop.
Save xiaoli/f6afd44d701ff2f5a0b7a0c433683177 to your computer and use it in GitHub Desktop.
Zhihu Unfollow Script
function unfollow() {
setTimeout(function() {
console.log('unfollowed');
let list = document.querySelectorAll('.FollowButton');
console.log(list);
for (i = 0; i < list.length; i++) {
list[i].click();
}
unfollow();
}, 3000);
let next = document.querySelectorAll('.PaginationButton-next');
next[0].click();
}
unfollow();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment