freebitcoin.in script


SUBMITTED BY: james82

DATE: March 13, 2017, 7:02 p.m.

FORMAT: Text only

SIZE: 2.4 kB

HITS: 4924

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

comments powered by Disqus