Last active
August 16, 2016 17:06
-
-
Save RANUX/fe851f12515d8609250a475a725f0ed0 to your computer and use it in GitHub Desktop.
Scroll Instagram Subscribers List in Browser Dev Console.
This file contains hidden or 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
// Inject jQuery to dev console | |
var element1 = document.createElement("script");element1.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js";element1.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(element1); | |
function doScroll() | |
{ | |
$('._4gt3b').scrollTo(0,500000); | |
} | |
// начать повторы с интервалом 1,5 сек | |
var timerId = setInterval(function() { | |
doScroll(); | |
}, 1500); | |
// через 10 сек остановить повторы | |
setTimeout(function() { | |
clearInterval(timerId); | |
console.log('Stop scroll') | |
}, 120000); | |
var list = []; | |
$('._gzjax>a').each(function(i){ | |
list.push(this.title); | |
}) | |
console.log(list); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment