Created
November 12, 2014 16:19
-
-
Save Fysac/269785f6d71e8e9a9d1e to your computer and use it in GitHub Desktop.
This file contains 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
// ==UserScript== | |
// @name Instaload | |
// @namespace https://fysac.me | |
// @description Autoloads the next page of photos on Instagram as you scroll down. | |
// @include http://instagram.com/* | |
// ==/UserScript== | |
$(window).scroll(function() { | |
if ($(window).scrollTop() + $(window).height() > $(document).height() - 100){ | |
document.getElementsByClassName('more-photos-enabled')[0].click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment