var upEvent = new MouseEvent('mouseup', {
view: window,
bubbles: true,
cancelable: true
});
var downEvent = new MouseEvent('mousedown', {
view: window,
bubbles: true,
cancelable: true
});
var myClick = function(text, number = 0){
$(text)[number].dispatchEvent(downEvent);
$(text)[number].dispatchEvent(upEvent);
}
var startChecking = function(){
var data = new Date();
console.log('Time:', data.getHours(), data.getMinutes(), data.getSeconds());
setTimeout(function(){
myClick('.btnSBC');
setTimeout(function(){
myClick('.btnTransfers');
setTimeout(function(){
if($('.sold .value').html() > 0){
myClick('.transferListTile');
setTimeout(function(){
myClick('#TradePile .btn-raised');
setTimeout(function(){
myClick('#TradePile .btn-raised', 1);
setTimeout(function(){
myClick('.btn-flat',1);
setTimeout(function(){
myClick('.btnTransfers');
},5000);
});
}, 2000);
},2000);
} else if($('.textField.all .count').html() > $('.textField.active .value').html()){
myClick('.transferListTile');
setTimeout(function(){
myClick('#TradePile .btn-raised', 1);
setTimeout(function(){
myClick('.btn-flat',1);
setTimeout(function(){
myClick('.Dialog.ui-dialog-type-message .btn-flat',1);
setTimeout(function(){
myClick('.btnTransfers');
});
},5000);
});
},2000);
}
},2000)
},2000);
startChecking();
}, 50000);
}
var blur = new MouseEvent('blur', {
view: window,
bubbles: true,
cancelable: true
});
var myBlur = function(text, number = 0){
$(text)[number].dispatchEvent(blur);
}
function spr(){
var min = null;
for(var i = 0; i<$('.auctionValue .label').length; i++){
if($('.auctionValue .label')[i].innerHTML === "Buy Now"){
var value = $('.auctionValue .coins.value')[i].innerHTML;
value = value.replace(/,/g, '');
if(!min || parseInt(value) < min) min = parseInt(value);
}
}
return min;
}
function go(){
myClick('.standard',5);
setTimeout(function(){
var price = spr();
myClick('.btn-flat.back.headerButton');
setTimeout(function(){
myClick('.list.accordian');
if(parseInt($('.coins.bandingLabel')[0].innerHTML.substr(5)) > price-100){
$('.numericInput.filled')[0].value = parseInt($('.coins.bandingLabel')[0].innerHTML.substr(5));
} else {
$('.numericInput.filled')[0].value = price - 100;
}
$('.numericInput.filled')[1].value = price;
},1000);
},1000);
}
$(document).keypress(function( event ) {
if ( event.which === 96 ) {
event.preventDefault();
go();
}
});
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}