Script Freebitcoin


SUBMITTED BY: arlenamayra

DATE: Dec. 24, 2016, 9:28 a.m.

FORMAT: Text only

SIZE: 3.7 kB

HITS: 3427

  1. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  2. profit = 16,
  3. errorsToDouble = 1 // quantidade de erros antes da primeira dobra
  4. resetAfterDouble = 1 // 0 = desativado, 1 = ativado, quando ativado o script vai resetar depois da quantidade de dobras definidas na variavel seguinte
  5. foldsBeforeReset = 3 // quantidade de dobras feitas antes do script resetar, so funciona se a variavel anterior estiver ativada.
  6. stopPercentage = 0.001,
  7. maxWait = 777,
  8. stopped = false, // debugging
  9. stopBefore = 1, // In minutes for timer before stopping redirect on webpage
  10. counter = 1;
  11. var $loButton = $('#double_your_btc_bet_lo_button'),
  12. $hiButton = $('#double_your_btc_bet_hi_button');
  13. function counterPlus(){
  14. counter = (counter + 1);
  15. }
  16. function multiply(){
  17. if(counter < errorsToDouble)
  18. {
  19. counterPlus()
  20. }
  21. else if (counter === errorsToDouble)
  22. {
  23. counterPlus()
  24. var current = $('#double_your_btc_stake').val();
  25. var multiply = (current * profit).toFixed(8);
  26. $('#double_your_btc_stake').val(multiply);
  27. }
  28. else if(resetAfterDouble === 1, counter === foldsBeforeReset + 3){
  29. counter = 1
  30. var current = $('#double_your_btc_stake').val();
  31. var multiply = (0.00000001).toFixed(8);
  32. $('#double_your_btc_stake').val(multiply);
  33. }
  34. else{
  35. counterPlus()
  36. var current = $('#double_your_btc_stake').val();
  37. var multiply = (current * 2).toFixed(8);
  38. $('#double_your_btc_stake').val(multiply);
  39. }
  40. }
  41. function getRandomWait(){
  42. var wait = Math.floor(Math.random() * maxWait ) + 100;
  43. console.log('Waiting for ' + wait + 'ms before next bet.');
  44. return wait ;
  45. }
  46. function startGame(){
  47. console.log('Game started!');
  48. reset();
  49. $loButton.trigger('click');
  50. }
  51. function stopGame(){
  52. console.log('Game will stop soon! Let me finish.');
  53. stopped = true;
  54. }
  55. function reset(){
  56. $('#double_your_btc_stake').val(startValue);
  57. }
  58. // quick and dirty hack if you have very little bitcoins like 0.00000001
  59. function deexponentize(number){
  60. return number * 10000000;
  61. }
  62. function iHaveEnoughMoni(){
  63. var balance = deexponentize(parseFloat($('#balance').text()));
  64. var current = deexponentize($('#double_your_btc_stake').val());
  65. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  66. }
  67. function stopBeforeRedirect(){
  68. var minutes = parseInt($('title').text());
  69. if( minutes < stopBefore )
  70. {
  71. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  72. stopGame();
  73. return true;
  74. }
  75. return false;
  76. }
  77. // Unbind old shit
  78. $('#double_your_btc_bet_lose').unbind();
  79. $('#double_your_btc_bet_win').unbind();
  80. // Loser
  81. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  82. if( $(event.currentTarget).is(':contains("lose")') )
  83. {
  84. console.log('You LOST! Multiplying your bet and betting again.');
  85. console.log(counter);
  86. multiply();
  87. setTimeout(function(){
  88. $loButton.trigger('click');
  89. }, getRandomWait());
  90. //$loButton.trigger('click');
  91. }
  92. });
  93. // Winner
  94. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  95. if( $(event.currentTarget).is(':contains("win")') )
  96. {
  97. if( stopBeforeRedirect() )
  98. {
  99. return;
  100. }
  101. if( iHaveEnoughMoni() )
  102. {
  103. console.log('You WON! But don\'t be greedy. Restarting!');
  104. counter = 1
  105. reset();
  106. if( stopped )
  107. {
  108. stopped = false;
  109. return false;
  110. }
  111. }
  112. else
  113. {
  114. console.log('You WON! Betting again');
  115. }
  116. setTimeout(function(){
  117. $loButton.trigger('click');
  118. }, getRandomWait());
  119. }
  120. });startGame()

comments powered by Disqus