Beruflich Dokumente
Kultur Dokumente
function countposts(){
return posts;
function scrolldown(){
x=0;
y=document.body.scrollHeight;
window.scroll(x,y);
function openpost(seconds){
Q=9;
console.log(seconds);
instagramposts=countposts();
function posttime(limit){
setTimeout(function(){
like[0].click();
closebtn[0].click();
if(Q==(instagramposts.length-1)){
window.location.href="https://www.instagram.com/explore/tags/photography";
if(Q==9){
instagramposts[Q].click();
posttime(limit);
Q++;
},limit*1000);
posttime(seconds);
// LIKE BUTTON
// like[0].click();
//COMMENT
function open(times,scrollseconds,likeseconds){
m=0;
function cycles(limit,seconds,openlimit){
setTimeout(function(){
if(m<=limit){
console.log(m,"TRUE");
cycles(limit,seconds,openlimit);
m++;
scrolldown();
else{
countposts();
console.log(openlimit);
openpost(openlimit);
},seconds*1000);
z[0].click();
cycles(times,scrollseconds,likeseconds);
//open(timesScrollDown,SecondsUntilNextScroll)
open(0,3,3);