script auto click bitcoin


SUBMITTED BY: haidao

DATE: Feb. 24, 2016, 7:16 p.m.

FORMAT: Text only

SIZE: 3.4 kB

HITS: 1264

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

comments powered by Disqus