script works 100%


SUBMITTED BY: kristinaxxx76

DATE: Oct. 19, 2016, 4:28 p.m.

FORMAT: Text only

SIZE: 3.7 kB

HITS: 698

  1. freebitco.in SCRIPT double and double
  2. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  3. stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08
  4. maxWait = 500, // In milliseconds
  5. stopped = false,
  6. stopBefore = 3; // In minutes
  7. var $loButton = $('#double_your_btc_bet_lo_button'),
  8. $hiButton = $('#double_your_btc_bet_hi_button');
  9. function multiply(){
  10. var current = $('#double_your_btc_stake').val();
  11. var multiply = (current * 2).toFixed(8);
  12. $('#double_your_btc_stake').val(multiply);
  13. }
  14. function getRandomWait(){
  15. var wait = Math.floor(Math.random() * maxWait ) + 100;
  16. console.log('Waiting for ' + wait + 'ms before next bet.');
  17. return wait ;
  18. }
  19. function startGame(){
  20. console.log('Game started!');
  21. reset();
  22. $loButton.trigger('click');
  23. }
  24. function stopGame(){
  25. console.log('Game will stop soon! Let me finish.');
  26. stopped = true;
  27. }
  28. function reset(){
  29. $('#double_your_btc_stake').val(startValue);
  30. }
  31. // quick and dirty hack if you have very little bitcoins like 0.0000001
  32. function deexponentize(number){
  33. return number * 1000000;
  34. }
  35. function iHaveEnoughMoni(){
  36. var balance = deexponentize(parseFloat($('#balance').text()));
  37. var current = deexponentize($('#double_your_btc_stake').val());
  38. return ((balance*2)/100) * (current*2) > stopPercentage/100;
  39. }
  40. function stopBeforeRedirect(){
  41. var minutes = parseInt($('title').text());
  42. if( minutes < stopBefore )
  43. {
  44. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  45. stopGame();
  46. return true;
  47. }
  48. return false;
  49. }
  50. // Unbind old shit
  51. $('#double_your_btc_bet_lose').unbind();
  52. $('#double_your_btc_bet_win').unbind();
  53. // Loser
  54. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  55. if( $(event.currentTarget).is(':contains("lose")') )
  56. {
  57. console.log('You LOST! Multiplying your bet and betting again.');
  58. multiply();
  59. setTimeout(function(){
  60. $loButton.trigger('click');
  61. }, getRandomWait());
  62. //$loButton.trigger('click');
  63. }
  64. });
  65. // Winner
  66. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  67. if( $(event.currentTarget).is(':contains("win")') )
  68. {
  69. if( stopBeforeRedirect() )
  70. {
  71. return;
  72. }
  73. if( iHaveEnoughMoni() )
  74. {
  75. console.log('You WON! But don\'t be greedy. Restarting!');
  76. reset();
  77. if( stopped )
  78. {
  79. stopped = false;
  80. return false;
  81. }
  82. }
  83. else
  84. {
  85. console.log('You WON! Betting again');
  86. }
  87. setTimeout(function(){
  88. $loButton.trigger('click');
  89. }, getRandomWait());
  90. }
  91. });startgame()

comments powered by Disqus