Skip to content

Instantly share code, notes, and snippets.

@arturadib
Created June 15, 2014 17:51
Show Gist options
  • Save arturadib/a86ce9d2dcf4fed66a9f to your computer and use it in GitHub Desktop.
Save arturadib/a86ce9d2dcf4fed66a9f to your computer and use it in GitHub Desktop.
Dropbox slideshow
var goingFwd = true;
setInterval(function() {
if (goingFwd) {
var $el = jQuery('.next');
if ($el.hasClass('opacity-zero')) {
goingFwd = false;
} else {
$el.click();
}
} else {
var $el = jQuery('.prev');
if ($el.hasClass('opacity-zero')) {
goingFwd = true;
} else {
$el.click();
}
}
}, 3500);
@arturadib
Copy link
Author

Copy and paste this script into your console while viewing an album on Dropbox.com to create an auto-playing slideshow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment