Professional Documents
Culture Documents
DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
var attackLink = $("a:contains('MULTIPLY BTC')");
(function($,e,t){"$:nomunge";var i=[],n=$.resize=$.extend($.resize,
{}),a,r=false,s="setTimeout",u="resize",m=u+"-special-
event",o="pendingDelay",l="activeDelay",f="throttleWindow";n[o]=200;n[l]=20;n[f]=tr
ue;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false}var e=$
(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1)
{a=t;h()}},teardown:function(){if(!n[f]&&this[s]){return false}var e=$
(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this)
{i.splice(t,1);break}}e.removeData(m);if(!i.length){if(r)
{cancelAnimationFrame(a)}else{clearTimeout(a)}a=null}},add:function(e){if(!
n[f]&&this[s]){return false}var i;function a(e,n,a){var r=$(this),s=r.data(m)||
{};s.w=n!==t?n:r.width();s.h=a!==t?
a:r.height();i.apply(this,arguments)}if($.isFunction(e)){i=e;return
a}else{i=e.handler;e.handler=a}}};function h(t){if(r===true){r=t||1}for(var
s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(":visible")){var
f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,
[d.w=f,d.h=c]);r=t||true}}else{d=l.data(m);d.w=0;d.h=0}}if(a!==null)
{if(r&&(t==null||t-r<1e3))
{a=e.requestAnimationFrame(h)}else{a=setTimeout(h,n[o]);r=false}}}if(!
e.requestAnimationFrame){e.requestAnimationFrame=function(){return
e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||
e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return
e.setTimeout(function(){t((new Date).getTime())},n[l])}}()}if(!
e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return
e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||
e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout}()}})
(jQuery,this);(function($){var options={};function init(plot){function onResize()
{var placeholder=plot.getPlaceholder();if(placeholder.width()==0||
placeholder.height()==0)return;plot.resize();plot.setupGrid();plot.draw()}function
bindEvents(plot,eventHolder){plot.getPlaceholder().resize(onResize)}function
shutdown(plot,eventHolder)
{plot.getPlaceholder().unbind("resize",onResize)}plot.hooks.bindEvents.push(bindEve
nts);plot.hooks.shutdown.push(shutdown)}
$.plot.plugins.push({init:init,options:options,name:"resize",version:"1.0"})})
(jQuery);
//setTimeout(function(){ location.reload(); },
5); //Refresh page after win
}
if(ref.highest_lose <
parseFloat(ref.__objects.betAmount.val())){
ref.highest_lose =
parseFloat(ref.__objects.betAmount.val());
}
ref.showLogs();
ref.profit =
parseFloat(ref.__objects.balance.html()) - ref.initialValue;
ref.addData([ref.totalBets++,ref.profit]);
if(!ref.stop){
// Mode
setTimeout(function(){
ref.__objects.
$loButton.trigger('click');
}, ref.getRandomWait());
}else{
ref.stop = false;
ref.stopped = false;
console.log("%cStopped",'color :
#FF0000');
return;
}
}
});
// Winner
$
('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
if( $(event.currentTarget).is(':contains("win")')
)
{
ref.verifyTime();
ref.total_wins++;
counter++;
lose_counter=0;
if (counter==5){
setTimeout(function(){ location.reload(); },
5); //Refresh page after win
}
if(ref.highest_win <
parseFloat(ref.__objects.betAmount.val())){
ref.highest_win =
parseFloat(ref.__objects.betAmount.val());
}
ref.showLogs();
ref.profit =
parseFloat(ref.__objects.balance.html()) - ref.initialValue;
ref.addData([ref.totalBets++,ref.profit]);
if(ref.stop){
console.log("%cStopped",'color :
#FF0000');
ref.stopped = false;
ref.stop = false;
return;
}
if( ref.stopBeforeRedirect() )
{
return;
}
if( ref.iHaveEnoughMoni() )
{
//console.log('You WON! But don\'t be
greedy. Restarting!');
ref.reset();
if( ref.stopped )
{
console.log("%cStopped",'color :
#FF0000');
ref.stopped = false;
return false;
}
}
else
{
console.log('You WON! Betting again');
}
setTimeout(function(){
ref.__objects.
$loButton.trigger('click');
}, ref.getRandomWait());
}
});
ref.reset();
ref.__objects.$loButton.trigger('click');
}
}
}
};
//return undefined
}
},
modes:{value:
{
multiply:
function(){
var current = ref.__objects.betAmount.val();
var multiply = (current * 1.01).toFixed(8);
ref.__objects.betAmount.val(multiply);
},
}
},
getRandomWait: {value:
function(){
var wait = Math.floor(Math.random() * this.maxWait ) + 100;
console.log('Waiting for ' + wait + 'ms before next bet.');
return wait ;
}
},
startGame: {value:
function(){
var now = new Date().valueOf();
this.finalTime = (this.finalTime > now)? this.finalTime : 0;
this.resolveSite();
this.addChart();
console.log('Game started!');
this.__objects.gameLoop();
}
},
verifyConditions: {value:
function(){
this.verifyTime();
this.verifyBalance();
}
},
verifyTime: {value:
function(){
var now = new Date().valueOf();
if(this.finalTime && now >= this.finalTime){
this.timeReached = true;
this.finalTime = 0; // ensures that you can still
call startGame();
this.stopGame();
}
}
},
verifyBalance: {value:
function(){
var balance =
convertToSatoshi(parseFloat(this.__objects.balance.text()));
if(balance <= minBalance){
this.stopGame();
}
}
},
addChart: {value:
function(){
this.initialValue =
parseFloat(this.__objects.balance.html());
if(this.chart == null){
this.__objects.container.prepend("<div
class='plot'></div>");
$(".plot").css({"width":"100%","height":"300px"});
var options = {
series: {
points: {show: false},
shadowSize: 0 // Drawing is faster
without shadows
},
xaxis: {
min: 0,
minTickSize: 10,
show: true
}
};
this.chart = $.plot($(".plot"),[[]],options);
}
}
},
addData: {value:
function(point){
if(point == undefined || point == null) return;
var series = this.chart.getData()[0].data;
if(series == undefined || series[0] == undefined)
series = [point];
else
series.push(point);
this.chart.setupGrid();
this.chart.setData([series]);
this.chart.draw();
}
},
showLogs: {value:
function(){
console.clear();
this.wagered += parseFloat(this.__objects.betAmount.val()); //
Logic error
console.log("Beginning Balance: " + this.initialValue);
console.log("Round: " + this.totalBets + " / " + undefined);
console.log("Profit: " + this.profit.toFixed(8) + " BTC");
console.log("Wagered: " + this.wagered.toFixed(8))
console.log('%cWin: ' + this.total_wins + ' %cLost: ' +
this.total_loses, 'color: #007a5c', 'color: #FF0000');
console.log('%cHighest bet: ' + this.highest_win.toFixed(8) + '
%c' + this.highest_lose.toFixed(8), 'color: #007a5c', 'color: #FF0000');
if(this.timeReached)
console.log('%cTime reached, stop', 'color: #007a5c');
}
},
stopGame: {value:
function(){
console.log('Game will stop soon! Let me finish.');
this.stopped = true;
this.stop = true;
}
},
reset: {value:
function(){
this.count_lose = 0;
this.__objects.betAmount.val(this.startValue);
}
},
deexponentize: {value:
function(number){
return number * 1000000;
}
},
convertToSatoshi:{value:
function(number){
return number*100000000;
}
},
iHaveEnoughMoni: {value:
function(){
var balance =
this.deexponentize(parseFloat(this.__objects.balance.text()));
var current =
this.deexponentize(this.__objects.betAmount.val());
return ((balance*2)/100) * (current*2) >
this.stopPercentage/100;
}
},
stopBeforeRedirect: {value:
function(){
var minutes = parseInt($('title').text());
if( minutes < this.stopBefore )
{
console.log('Approaching redirect! Stop the game so we
don\'t get redirected while loosing.');
this.stopGame();
return true;
}
return false;
}
}
});