Phantasmic
Junior Member
- Apr 9, 2012
- 107
- 12
Thanks for posting this. iMacros are so easy to learn 
is there a way to set it so that it doesnt unfollow people you already follow?
This here. ^
I would think it has something to do with IGNORE ERROR, but I'm not that illiterate with iMacro's, so I can't say for sure.
is there a way to set it so that it doesnt unfollow people you already follow?
followCount = 25;
i = 5;
for (f=1; f<=followCount; f++ && i++){
e = window.document.getElementsByClassName('follow-text')[i];
var css = window.document.defaultView.getComputedStyle(e,null);
display = css.getPropertyValue('display');
if(display == 'block'){
var macro = 'CODE:' +
'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:Follow<SP>Following<SP>Unfollow<SP>Blocked<SP>Unblock<SP>Pen*';
iimSet("i",i); iimPlay(macro); iimDisplay(i);
}else {
iimDisplay(i);
}
}//end of Message Count
iimExit();
Yes, you have to use javascript.
Here's a quick js I wrote that detects followers and ignores it goes to the next.
Just save it as a .js in your imacros. followCount is how many times to loop.
Code:followCount = 25; i = 5; for (f=1; f<=followCount; f++ && i++){ e = window.document.getElementsByClassName('follow-text')[i]; var css = window.document.defaultView.getComputedStyle(e,null); display = css.getPropertyValue('display'); if(display == 'block'){ var macro = 'CODE:' + 'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:Follow<SP>Following<SP>Unfollow<SP>Blocked<SP>Unblock<SP>Pen*'; iimSet("i",i); iimPlay(macro); iimDisplay(i); }else { iimDisplay(i); } }//end of Message Count iimExit();
Yes, you have to use javascript.
Here's a quick js I wrote that detects followers and ignores it goes to the next.
Just save it as a .js in your imacros. followCount is how many times to loop.
//Set Followers Count
followCount = 55;
//Leave Numbers Alone
i = 5;
u = i - 1;
f = 0;
skipped = 0;
//Script loops and follows full 55 people disregarding skipped aka already following
while (f < followCount){
var scroll = 'CODE:' + 'URL GOTO=javascript:window.scrollBy(0,20000)';
iimPlay(scroll);
e = window.document.getElementsByClassName('follow-text')[u];
var css = window.document.defaultView.getComputedStyle(e, null);
display = css.getPropertyValue('display');
if(display === "block"){
iimSet("i",i);
var macro = 'CODE:' + 'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:Follow<SP>Following<SP>Unfollow<SP>Blocked<SP>Unblock<SP>Pen*';
i++; f++; u++;
iimPlay(macro);
}else {i++; u++; skipped++;}
}//end of Message Count
iimExit();
Modified the code a bit. Sets followCount to only if you follower someone. Before it just ran a set amount of times regardless if it followed someone or skipped someone. This way you are for sure to get the full followCount amount of followers each time you run it.
Code://Set Followers Count followCount = 55; //Leave Numbers Alone i = 5; u = i - 1; f = 0; skipped = 0; //Script loops and follows full 55 people disregarding skipped aka already following while (f < followCount){ var scroll = 'CODE:' + 'URL GOTO=javascript:window.scrollBy(0,20000)'; iimPlay(scroll); e = window.document.getElementsByClassName('follow-text')[u]; var css = window.document.defaultView.getComputedStyle(e, null); display = css.getPropertyValue('display'); if(display === "block"){ iimSet("i",i); var macro = 'CODE:' + 'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:Follow<SP>Following<SP>Unfollow<SP>Blocked<SP>Unblock<SP>Pen*'; i++; f++; u++; iimPlay(macro); }else {i++; u++; skipped++;} }//end of Message Count iimExit();
Modified the code a bit. Sets followCount to only if you follower someone. Before it just ran a set amount of times regardless if it followed someone or skipped someone. This way you are for sure to get the full followCount amount of followers each time you run it.
Code://Set Followers Count followCount = 55; //Leave Numbers Alone i = 5; u = i - 1; f = 0; skipped = 0; //Script loops and follows full 55 people disregarding skipped aka already following while (f < followCount){ var scroll = 'CODE:' + 'URL GOTO=javascript:window.scrollBy(0,20000)'; iimPlay(scroll); e = window.document.getElementsByClassName('follow-text')[u]; var css = window.document.defaultView.getComputedStyle(e, null); display = css.getPropertyValue('display'); if(display === "block"){ iimSet("i",i); var macro = 'CODE:' + 'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:Follow<SP>Following<SP>Unfollow<SP>Blocked<SP>Unblock<SP>Pen*'; i++; f++; u++; iimPlay(macro); }else {i++; u++; skipped++;} }//end of Message Count iimExit();
Hi. I tried using the code but is not working.
This is what's showing
unknown command: FOLLOWCOUNT, line 1 (Error code: 910)
Thanks