Created
April 20, 2019 15:28
-
-
Save bulatie/e57bfad86c5abb459e613732905290ef to your computer and use it in GitHub Desktop.
unfollow zhihu question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go to page below and run code | |
// https://www.zhihu.com/question/following | |
function unfollow_all(){ | |
var remaining = $(".zg-unfollow").length; | |
if (remaining > 0) { | |
$(".zg-unfollow").first().trigger('click'); | |
window.scrollBy(0,100); | |
setTimeout(unfollow_all, Math.random(0, 1).toFixed(2)*1000 + 500); | |
} | |
} | |
unfollow_all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment