craigmoney
Newbie
- Aug 16, 2011
- 29
- 3
People were commenting on a few issues, I refined the script just a little but mostly created some comments to help explain what is going on for the less code savvy people. If you plan on using iMacros, you should invest some time in learning javascript. Just youtube tutorials on plain javascript. Script works as of 6/2/2105. You need to copy this code and save it as a .js file and drop it in your macro folder. There is a glitch in iMarco that if you create a file outside the folder it sometimes displays no code, so just hit manage/edit on the iMarco plugin and paste it directly into the iMacro editor then save and close. Once you navigate to your followers page just hit run and it will loop through based on what you set the followCount to.
Code:
//Set options relay to medium on imarco settings to get human speed no need for WAIT//Navigate to the url i.e. https://twitter.com/twitterhandle/followers//Set Follow CountfollowCount = 55;//Leave numbers alonei = 5;u = i - 1;f = 0;skipped = 0;//Script loops and follows full 55 people disregarding skipped aka already followingwhile (f < followCount){ e = window.document.getElementsByClassName('follow-text')[u]; var css = window.document.defaultView.getComputedStyle(e, null); display = css.getPropertyValue('display'); if(display === "block"){ //Set 5th follow button on the page/Skips sidebar buttons and URL page button iimSet("i",i); //Follow People whom you don't already follow var macro = 'CODE:' + 'TAG POS={{i}} TYPE=BUTTON ATTR=TXT:FollowFollowingUnfollowBlockedUnblockPen*'; i++; f++; iimDisplay('Followed: ' + f); iimPlay(macro); //Scrolls down the page to load more follow buttons var scroll = 'CODE:' + 'URL GOTO=javascript:window.scrollBy(0,20000)'; iimPlay(scroll); }else { //If already Follow Skip i++; u++; skipped++; iimDisplay('Skipped: ' + skipped +' Followed: ' + f); } }//end of Message Count//Logout and Close Tab after follow count is met tClose = 'CODE:' + 'TAG POS=1 TYPE=A ATTR=ID:user-dropdown-toggle' + '\n' + 'TAG POS=1 TYPE=BUTTON ATTR=TXT:Logout' + '\n' + 'WAIT SECONDS=3' + '\n' + 'TAB CLOSE';iimPlay(tClose);