Skip to content

Instantly share code, notes, and snippets.

@dimm999
Created January 9, 2019 07:32
Show Gist options
  • Save dimm999/cfb84b125d595d6add5daa7e139e954d to your computer and use it in GitHub Desktop.
Save dimm999/cfb84b125d595d6add5daa7e139e954d to your computer and use it in GitHub Desktop.
Instagram script for followers
/* source https://www.youtube.com/watch?v=UKi1NwqKCz8
_aj7mu _r4e4p _95tat _o0442
*/
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict()
window.setInterval(function(){
var x = 0;
$("button:contains('Following')").each(
function(){
if(x==3) return false;
$(this).trigger("click");
$('._4gt3b').scrollTop($('._4gt3b')[0].scrollHeight);
x++;
}
)
$('._4gt3b').scrollTop($('._4gt3b')[0].scrollHeight); console.log('loop');
}, 60000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment