coinwalk

freebitcoin script

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