// Collecting VR's for Removing // Written by DauntlessDragon // Title: I Don't Vote.js // Version 1 // // This Script will not vote // This Script collects the Vote Requestors' URL's // Goes to their page, // then Removed Friendship. // // Running this script several times over the course of a month // Should remove all excessive battler's // // Profile URL's to keep // Notice the last URL in the list has no comma var safePlace = new Array ( "http://www.myyearbook.com/?mysession=cmVnaXN0cmF0aW9uX3Byb2ZpbGUmdXNlcmlkPTIxOTk0NjA1", "http://www.myyearbook.com/?mysession=cmVnaXN0cmF0aW9uX3Byb2ZpbGUmdXNlcmlkPTI3MDUzMjc0" ); /////////////////////////////////////// // Do not change anything below here // /////////////////////////////////////// var n = 0; var tmp = ""; var thisVR = ""; var myVRs = new Array(); var myVRc = new Array(); var haveIT = false; var working = true; var refreshNeeded = 0; var thisBattle = ""; var BattleOnDeck = ""; var UpcomingBattle = ""; var YouShouldBeHere = "http://www.myyearbook.com/?mysession=YmF0dGxlc192b3RlcmVxdWVzdHM="; var Refresh = "\n CODE:"; Refresh += "\n TAB OPEN"; Refresh += "\n TAB CLOSE"; Refresh += "\n URL GOTO=" + YouShouldBeHere; var Tickle = "CODE: 'Collecting the Requestor"; Tickle += "\n SET !ERRORIGNORE YES"; Tickle += "\n SET !TIMEOUT 5"; Tickle += "\n TAG POS=1 TYPE=SPAN ATTR=CLASS:*Color"; Tickle += "\n TAG POS=R-1 TYPE=A ATTR=HREF:?mysession=cmVnaXN0cmF0aW9uX3Byb2ZpbGUmdXNlcmlkP* EXTRACT=HREF"; Tickle += "\n TAG POS=1 TYPE=IMG ATTR=CLASS:closeRequestButton&&SRC:*close_gray_x.gif&&ID:closeRequest*"; // MAIN // Get The Current URL iimPlay("CODE:SET !EXTRACT {{!URLCURRENT}}"); ImHere = iimGetLastExtract(1); if (ImHere != YouShouldBeHere){ iimPlay("CODE:URL GOTO=" + YouShouldBeHere); } // Collect those who send VR's while (ThereAreMoreVRs()){ iimPlay(Tickle); thisVR = iimGetLastExtract(1); haveIT=false; for(var i in safePlace){ if (safePlace[i] == thisVR){haveIT=true;} } for(var i in myVRs){ if (myVRs[i] == thisVR){ haveIT=true; myVRc[i]++; break; } } if (!haveIT){ myVRs.push(thisVR); myVRc.push(1); } if (refreshNeeded++ > 25){ refreshNeeded = 0; iimPlay(Refresh); } } // Remove Vote Requesters for(var i in myVRs){ if (myVRc[i]>10){ RemoveVoter = "CODE: 'Goto Voter's Page"; RemoveVoter += "\n 'Removing this Voter\n"; RemoveVoter += "\n SET !ERRORIGNORE YES"; RemoveVoter += "\n SET !TIMEOUT 60"; RemoveVoter += "\n URL GOTO="+myVRs[i]; RemoveVoter += "\n TAG POS=1 TYPE=A ATTR=TXT:removefriendship"; RemoveVoter += "\n TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:frmreg ATTR=VALUE:Yes"; iimPlay(RemoveVoter); } } // Function Junction function ThereAreMoreVRs(){ for (i=0;i<2;i++){ var AreThereMoreVRs = "CODE: 'Collecting Battle ID"; AreThereMoreVRs += "\n SET !ERRORIGNORE YES"; AreThereMoreVRs += "\n SET !TIMEOUT 1"; AreThereMoreVRs += "\n TAG POS=1 TYPE=SPAN ATTR=CLASS:hiddenbatid EXTRACT=TXT"; AreThereMoreVRs += "\n TAG POS=2 TYPE=SPAN ATTR=CLASS:hiddenbatid EXTRACT=TXT"; iimPlay(AreThereMoreVRs); UpcomingBattle = iimGetLastExtract(1); BattleOnDeck = iimGetLastExtract(2); if (thisBattle==UpcomingBattle){ UpcomingBattle = BattleOnDeck; } thisBattle = UpcomingBattle; if ((thisBattle!="#EANF#")&&(thisBattle!=undefined)&&(thisBattle!=null)){return true;} iimPlay(Refresh); } return false; }