Advertisement
Yunga

CVBonuses + Delay

May 8th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function(){function g(){if(i--){m.innerHTML="<br /><br /><br />"+i+" bonus pages to get...";w.location=b[i];setTimeout(g,d*1e3)}else{document.body.removeChild(m);alert("That's all folks!")}}var l,b,d,s,c,i,m,w;c='http://apps.facebook.com/playcastleville/receive.php?';d=0;s=c;s=s?c:prompt("What's the BEGINNING of the url?",c);if(!s)return;b=[];l=document.links;i=l.length;while(i--){if(!l[i].href.indexOf(s))b.push(l[i].href)}c=i=b.length;if(i>0){if(confirm('Get the '+i+' bonus(es) found?')){d=d?d:prompt('Delay in second between each bonus?',20);if(!d)return;m=document.createElement('div');m.setAttribute('style','position: fixed; top: 0px; left: 0px; bottom: 0px; right: 0px; background: #369; color: #fff; cursor: wait; text-align: center; vertical-align: middle; opacity: 0.9; z-index: 10000;');document.body.appendChild(m);w=window.open('about:blank');g()}else{w=window.open().document;w.writeln('<html><head><title>CastleVilleBonuses '+new Date().getTime()+'</title></head><body><h3>Bonus(es) from <a href="'+location.href+'">'+document.title+'</a>:</h3><hr />');while(i--){w.writeln('\n<a href="'+b[i]+'">'+b[i]+'</a><br />')}w.writeln('</body></html>')}}else{alert('No Bonus Found!')}})()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement