//Any Questions PM me (Riku517) on TBN or post in the thread [http://thebot.net/threads/imacro-script-for-22hits-rotation-updated.346993/]
while (true) {
//Put YT Links here [check the ' and ,
var urls = ['https://www.youtube.com/watch?v=HjSeq6RvZVA', 'https://www.youtube.com/watch?v=dMJJIUGhkeQ','https://www.youtube.com/watch?v=M3xtC42D5fg','https://www.youtube.com/watch?v=FcUA9Lu6vOE', 'https://www.youtube.com/watch?v=eWGImDk09tM', 'https://www.youtube.com/watch?v=mvEqSPS69VI', 'https://www.youtube.com/watch?v=FNZFzDx4HkQ', 'https://www.youtube.com/watch?v=vj5bNwQnYwA', 'https://www.youtube.com/watch?v=qU6uvolea04', 'https://www.youtube.com/watch?v=HVgLqL5tjaM', 'https://www.youtube.com/watch?v=0tgA_-Xl5aA', 'https://www.youtube.com/watch?v=93ocubsCUTY', 'https://www.youtube.com/watch?v=_UnJ3eSXMT4', 'https://www.youtube.com/watch?v=_PZa0B2KIBw', 'https://www.youtube.com/watch?v=lKfvbiVkjiQ', 'https://www.youtube.com/watch?v=tRFRAZivAh0', 'https://www.youtube.com/watch?v=iuOxghAYFbc', 'https://www.youtube.com/watch?v=Jz4uGBOejgQ', 'https://www.youtube.com/watch?v=Ac2gp5YsCLo', 'https://www.youtube.com/watch?v=M4gprH2gjJU', 'https://www.youtube.com/watch?v=_DAOk0KY_gc', 'https://www.youtube.com/watch?v=30BHeKR4HEs', 'https://www.youtube.com/watch?v=qJvKVhOjUw0', 'https://www.youtube.com/watch?v=ERPSYoWikzU'];
//Adds your YT links to the FB refer links
function shuffle(o){
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
}
//Makes the random letters and numbers needed for the FaceBook refer link
function makeid(){
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 9; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
//Shuffles all your YT links
shuffled_arr = shuffle(urls);
final_links_arr = [];
//The 2 is the number of slots you have activated CHANGE IT AS NEEDED
for (i=0;i<3;i++){
//Creates your final links
final_links_arr.push('http://www.facebook.com/l/'+makeid()+'/' + shuffled_arr[i]);}
//declares variables needed for the script to work
var n = '\n';
var mac;
var pos_a = 2;
var pos_b = 1;
var pos_c = 4;
var pos_d = 3;
//Does the magic
mac = "CODE:";
mac += "VERSION BUILD=8940826 RECORDER=FX"+ n;
mac += "SET !TIMEOUT_PAGE 10"+n;
mac += "SET !TIMEOUT_TAG 0"+n;
mac += "SET !TIMEOUT 90"+n;
mac += "SET !TIMEOUT_STEP 1"+n;
mac += "SET !ERRORIGNORE YES"+n;
//Goes to the 22hits, puts in your information, logs you in, goes to the links page
mac += "URL GOTO=http://22hits.com/index.php#/"+ n;
//ENTER YOUR EMAIL HERE
mac += "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:login.php ATTR=ID:usr_email CONTENT=devantofarhan@gmail.com"+ n;
mac += "SET !ENCRYPTION NO"+ n;
//ENTER YOUR PASSWORD HERE
mac += "TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:login.php ATTR=ID:usr_pass CONTENT=ninjasaga321"+ n;
mac += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:login.php ATTR=NAME:login"+ n;
mac += "TAG POS=1 TYPE=A ATTR=TXT:My<SP>links"+ n;
final_links_arr.forEach(function(entry) {
//Declares a random number for the NUMBER OF HITS PER HOUR
//Change the 5 to your lower limit of hits and the 10 to your upper limit minus your lower limit
//Example: 10+5 --> 5 to 15 hits per hour
var R = Math.floor(Math.random()*120 +100);
//Puts the HITS PER HOUR into the correct box
mac += "TAG POS="+pos_c+" TYPE=INPUT:TEXT ATTR=ID:duration CONTENT=" + R + n;
//Declares a random number for the DURATION OF A HIT
//Change the 55 to your lower limit of hits and the 25 to your upper limit minus your lower limit
//Example: 40+60 --> 60s to 100s per hit
var D = Math.floor(Math.random()*20 + 100);
//Puts the DURATION OF A HIT into the correct box
mac += "TAG POS="+pos_d+" TYPE=INPUT:TEXT ATTR=ID:duration CONTENT=" + D +n;
//Puts the YT+FB Refer URL into the correct box
mac += "TAG POS="+pos_a+" TYPE=INPUT:TEXT ATTR=ID:url CONTENT=" + entry + n;
//Activates the link [commented out (remove // to uncomment) for SAFETY, TEST BEFORE YOU ACTIVATE YOUR LINKS]
//mac += "TAG POS="+pos_b+" TYPE=INPUT:CHECKBOX ATTR=NAME:active CONTENT=YES"+ n;
//Selects unique IP
mac += "TAG POS="+pos_b+" TYPE=INPUT:CHECKBOX ATTR=NAME:uniqueip CONTENT=YES"+ n;
//Saves the slot
mac += "TAG POS="+pos_b+" TYPE=A ATTR=TXT:Save"+ n;
//increments poistions for the next loop
pos_a++;
pos_b++;
pos_c+=2;
pos_d+=2;
});
//Signs you out [You can deactivate this if you want, pretty sure it will still work without this]
mac += "TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>Out"+ n;
//TIME UNTIL LINKS ARE ROTATED AGAIN
//Change this to however long you want the links to be activated for in SECONDS
//Example 1200 --> 1200SECS=20Minutes -->rotate links every 20 minutes
mac +='WAIT SECONDS=1800'+n;
var m = iimPlay(mac);
}
//Any Questions PM me (Riku517) on TBN or post in the thread [http://thebot.net/threads/imacro-script-for-22hits-rotation-updated.346993/]