var ads= "CODE:";
ads += "VERSION BUILD=8881205 RECORDER=FX" + "\n";
ads+= "SET !TIMEOUT_PAGE 20" + "\n";
ads += "TAB T=1" + "\n";
ads += "REFRESH" + "\n";
ads += "TAG POS=1 TYPE=A ATTR=ONCLICK:*&&TARGET:_blank&&HREF:*" + "\n";
ads += "WAIT SECONDS={{time}}" + "\n";
var kapat= "CODE:";
kapat += "VERSION BUILD=8881205 RECORDER=FX" + "\n";
kapat += "SET !TIMEOUT_PAGE 3" + "\n";
kapat += "SET !EXTRACT_TEST_POPUP NO"+ "\n";
kapat += "TAB CLOSE" + "\n";
kapat += "TAB T=1" + "\n";
iimPlay("CODE:URL GOTO=http://www.successbux.com/index.php?view=click&");
while(window.content.document.getElementById("time r")!=null){
var text=window.content.document.getElementById("timer ").textContent.trim();
if(text=="Mini Ad"){time=15; iimSet("time",time)}
else if(text=="A Class Ad"){time=115; iimSet("time",time)}
else if(text=="F Class Ad"){time=5; iimSet("time",time)}
else{timer=10; iimSet("time",time)}
iimPlay(ads);
solve();
iimPlay(kapat);
}
wall();
function solve(){
var links= [];
var macro = "CODE:";
macro += "VERSION BUILD=8881205 RECORDER=FX" + "\n";
macro += "TAB T=1" + "\n";
macro += "FRAME NAME=\"surftopframe\"" + "\n";
macro += "TAG POS={{t}} TYPE=IMG ATTR=SRC:* EXTRACT=HREF" + "\n";
var t=2;
for (var i=0;i<5;i++){
iimSet("t",t)
iimPlay(macro)
var text=iimGetLastExtract();
links.push(text);
t++;
}
var a=findDuplicates(links);
var click= "CODE:";
click += "VERSION BUILD=8881205 RECORDER=FX" + "\n";
click += "SET !TIMEOUT_PAGE 5" + "\n";
click += "TAB T=1" + "\n";
click += "FRAME NAME=\"surftopframe\"" + "\n";
click += "TAG POS=2 TYPE=IMG ATTR=SRC:{{a}}" + "\n";
iimSet("a",a)
iimPlay(click);
}
function findDuplicates(links) {
var i,
len=links.length,
out=[],
obj={};
for (i=0;i<len;i++) {
if (obj[links[i]] != null) {
if (!obj[links[i]]) {
out.push(links[i]);
obj[links[i]] = 1;
}
} else {
obj[links[i]] = 0;
}
}
return out;
}
function wall()
{
iimPlay("CODE:URL GOTO=http://www.successbux.com/index.php?view=clixwall&");
var site=window.content.document.getElementsByTagName( "iframe")[0].getAttribute("src");
iimSet("site",site)
iimPlay("CODE:URL GOTO={{site}}");
var b=window.content.document.getElementsByClassName(" caption").length
var i=0;
var wall = "CODE:";
wall += "VERSION BUILD=8881205 RECORDER=FX" + "\n";
wall += "SET !ERRORIGNORE YES"+ "\n";
wall += "SET !EXTRACT_TEST_POPUP NO"+ "\n";
wall += "SET !TIMEOUT_PAGE 3" + "\n";
wall += "TAB OPEN" + "\n";
wall += "TAB T=2" + "\n";
wall += "URL GOTO=http://www.clixwall.com/{{t}}" + "\n";
wall += "WAIT SECONDS={{c}}" + "\n";
wall += "TAB CLOSE" + "\n";
for(var x=0;x<b;x++)
{var t=window.content.document.getElementsByClassName(" caption")[i].getElementsByTagName("a")[0].getAttribute("href");
var time=window.content.document.getElementsByClassNam e("caption")[0].textContent.search("0:30")
if(time!=-1){c=33;}
else{c=8;}
iimSet("t",t);
iimSet("c",c);
iimPlay(wall);
i++;
}
}
Bookmarks