Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Created November 1, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathansmith/a773c1ce22f94365a36d048da098cd13 to your computer and use it in GitHub Desktop.
Save nathansmith/a773c1ce22f94365a36d048da098cd13 to your computer and use it in GitHub Desktop.
Leave this running on your "dribbble.com/username/followers" page, to auto-follow everyone back.
// ==================
// Scroll page timer.
// ==================
setInterval(function() {
// NOT end of page?
if (!$('.null-message').length) {
// Get offset.
var offset = document.body.scrollHeight
// Scroll window.
window.scrollTo(0, offset)
}
// Wait 60 seconds.
}, 60000)
// ===================
// Click follow timer.
// ===================
setInterval(function() {
// End of page?
if ($('.null-message').length) {
// Click first link.
$('a.follow:first').click()
}
// Wait 30 seconds.
}, 30000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment