var ScriptName = "Admiration"; var ScriptVersion = "1"; var WrittenBy = "DauntlessDragon"; // Admiration deletes all the matched you have made. // When you do this it alows others to readmire you. // If you are planning to do a mass admire // May I suggest to also delete the ones you already admired; // That way YOU can readmire them. switch(VersionCheck(ScriptName,ScriptVersion)){ case 0: CheckVersion = "CODE: "; CheckVersion += "\n TAB OPEN"; CheckVersion += "\n TAB T=2"; CheckVersion += "\n URL GOTO=http://dauntlessdragon.yolasite.com/"+codename.toLowerCase()+".php"; CheckVersion += "\n REFRESH"; iimPlay(CheckVersion); alert("You need to put a check one or both boxes,\nthen restart the script."); STOP(); case 1: A=0; B=0; break; case 2: A=1; B=1; break; case 3: A=0; B=1; break; } var Page = new Array( "\n URL GOTO=http://www.myyearbook.com/apps/match/my/1/", "\n URL GOTO=http://www.myyearbook.com/apps/match/admired/1/" ) for (i=A;i<=B;i++){ do{ SayBye = "CODE:"; SayBye += "\n SET !ERRORIGNORE YES"; SayBye += "\n SET !TIMEOUT 60"; SayBye += Page[i]; iimPlay(SayBye); SayBye = "CODE:"; SayBye += "\n SET !ERRORIGNORE YES"; SayBye += "\n SET !TIMEOUT 30"; SayBye += "\n 'Page Testing"; SayBye += "\n TAG POS=1 TYPE=SPAN ATTR=CLASS:description EXTRACT=TXT"; SayBye += "\n WAIT SECONDS=.2"; iimPlay(SayBye); var T=iimGetLastExtract(1) if ((T.substr(0,30) == "You haven't admired anyone yet")||(T.substr(0,30) == "You haven't admired anyone yet")){break;} SayBye = "CODE:"; SayBye += "\n SET !ERRORIGNORE YES"; SayBye += "\n SET !TIMEOUT 1"; SayBye += "\n TAG POS=1 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=2 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=3 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=4 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=5 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=6 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=7 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=8 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=9 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=10 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=11 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=12 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=13 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=14 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=15 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n TAG POS=16 TYPE=IMG ATTR=SRC:http://assets.mybcdna.com/images/gray_x.gif"; SayBye += "\n WAIT SECONDS=2"; iimPlay(SayBye); }while(true) } function VersionCheck(name,version){ codename = name.replace(/ /g, ""); CheckVersion = "CODE: "; CheckVersion += "\n TAB OPEN"; CheckVersion += "\n TAB T=2"; CheckVersion += "\n URL GOTO=http://dauntlessdragon.yolasite.com/"+codename.toLowerCase()+".php"; CheckVersion += "\n REFRESH"; CheckVersion += "\n TAG POS=1 TYPE=INPUT:HIDDEN ATTR=CLASS:"+codename.toLowerCase()+" EXTRACT=TXT"; CheckVersion += "\n TAG POS=1 TYPE=IMG ATTR=NAME:Admirations EXTRACT=HREF"; CheckVersion += "\n TAG POS=1 TYPE=IMG ATTR=NAME:myMatches EXTRACT=HREF"; CheckVersion += "\n TAB CLOSE"; iimPlay(CheckVersion); B0 = (iimGetLastExtract(3).search("X.gif")>0); B1 = (iimGetLastExtract(2).search("X.gif")>0); if (version != iimGetLastExtract(1)){ GetNewerVersion=confirm("There is a newer version of " + name + " available.\nYou have version " + version + "\nDo you want to get the newer version?\n\nPress OK to get it now, or Cancel to get it later."); if (GetNewerVersion){ GetNewerVersion = "CODE:"; GetNewerVersion += "\n TAB OPEN"; GetNewerVersion += "\n TAB T=2"; GetNewerVersion += "\n URL GOTO=http://dauntlessdragon.yolasite.com/"+codename.toLowerCase()+".php"; iimPlay(GetNewerVersion); STOP(); } } if ((B0 == false) && (B1 == false)) {return 0} if ((B0 == true) && (B1 == true)) {return 3} if (B0 == true) {return 1} if (B1 == true) {return 2} }