Professional Documents
Culture Documents
// @name CuratareLumeNoua
// @namespace http://tampermonkey.net/
// @version 1
// @description try to take over the world!
// @author You
// @include https://*&screen=place&mode=scavenge
// @include https://*&screen=place&mode=scavenge*
// @exclude https://*&screen=place&mode=scavenge_mass*
// @grant none
// ==/UserScript==
function getRandomInt(max)
{
return (Math.floor(Math.random() * Math.floor(max)));
}
function ActionTime(Second,Minute,Hour)
{
if(Second+s>59)
{
m=m+1;
s=Second+s-60;
}
else
{
s=Second+s;
}
if(Minute+m>59)
{
h=h+1;
m=Minute+m-60;
}
else
{
m=Minute+m;
}
if(Hour+h>23)
{
h=h+Hour-24;
}
else
{
h=h+Hour;
}
return time;
}
$( document ).ready(function() {
x = document.getElementsByClassName("btn btn-default free_send_button");
sw=x.length;
contorRLD=sw-1;
console.log("X.length : ",sw);
console.log("Reload Contor : ",contorRLD);
switch(sw) {
case 1:
console.log(sw + " curatari deblocate");
setTimeout(function(){
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) ||
$.ajax('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new
Date())/3e5),{cache:1,dataType:"script"});void 0;
setTimeout(function(){
x[sw-1].click();
setTimeout(function(){
location.reload();
}, getRandomInt(1500)+5000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+1000);
break;
case 2:
console.log(sw + " curatari deblocate");
setTimeout(function(){
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) ||
$.ajax('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new
Date())/3e5),{cache:1,dataType:"script"});void 0;
setTimeout(function(){
x[sw-1].click();
setTimeout(function(){
x[sw-2].click();
setTimeout(function(){
location.reload();
}, getRandomInt(1500)+5000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+1000);
break;
case 3:
console.log(sw + " curatari deblocate");
setTimeout(function(){
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) ||
$.ajax('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new
Date())/3e5),{cache:1,dataType:"script"});void 0;
setTimeout(function(){
x[sw-1].click();
setTimeout(function(){
x[sw-2].click();
setTimeout(function(){
x[sw-3].click();
setTimeout(function(){
location.reload();
}, getRandomInt(1500)+5000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+1000);
break;
case 4:
console.log(sw + " curatari deblocate");
setTimeout(function(){
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) ||
$.ajax('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new
Date())/3e5),{cache:1,dataType:"script"});void 0;
setTimeout(function(){
x[sw-1].click();
setTimeout(function(){
x[sw-2].click();
setTimeout(function(){
x[sw-3].click();
setTimeout(function(){
x[sw-4].click();
setTimeout(function(){
location.reload();
}, getRandomInt(1500)+5000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+2000);
}, getRandomInt(1500)+1000);
break;
default :
var y = document.getElementsByClassName("return-countdown");
contorRLD=y.length-1;
console.log("Reload Contor part2 : ",contorRLD,"; YL :", y.length);
console.log("reload time should be:",y[contorRLD].innerHTML);
regExTimeArr = regExTime.exec(y[contorRLD].innerHTML);
HHH=parseInt(regExTimeArr[1]);
Min=parseInt(regExTimeArr[2]) + 2 + getRandomInt(2);
Sec=parseInt(regExTimeArr[3]) + getRandomInt(60);
RandomReloadTime = (HHH * 3600) + (Min * 60) + Sec;
if(y.length<1)
{
console.log("YL=",y.length,"...RELOADING");
setTimeout(function(){
location.reload();
}, getRandomInt(1500)+5000);
}
else
{
console.log ("Reload time is : " + HHH + ":" + Min + ":" + Sec + " at :
" + ActionTime(Sec,Min,HHH));
setTimeout(function(){
location.reload();
}, RandomReloadTime*1000);
}
}
});