Skip to content

Instantly share code, notes, and snippets.

@RobertDaleSmith
Created February 10, 2018 23:48
Show Gist options
  • Save RobertDaleSmith/f532cd90a6122700339db86fc585701e to your computer and use it in GitHub Desktop.
Save RobertDaleSmith/f532cd90a6122700339db86fc585701e to your computer and use it in GitHub Desktop.
var unfollowNext = () => {
var followButtons = $('.following button.following-text.button-text');
if (followButtons && followButtons[0]) {
$(window).scrollTop(followButtons.offset().top-250);
followButtons[0].click();
} else {
$(window).scrollTop(99999999999999999);
}
var randNextTime = Math.floor(Math.random() * 2000) + 500;
t = setTimeout(unfollowNext, randNextTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment