Advertisement
coinwalk

insane snowybot javascript

May 19th, 2021
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. function resetseed(){
  2. var a=document.getElementsByClassName('ManualSeedControls')[0];
  3. if(!a)return;
  4. if(a.style.display!='block'){
  5. console.log('Enabling manual seed');
  6. if(document.getElementById('AccountTabManualSeed')){
  7. document.getElementById('AccountTabManualSeed').click();
  8. }
  9. resetseed();
  10. }
  11. }
  12. resetseed();
  13. function getR(min, max) {
  14. min = Math.ceil(min);
  15. max = Math.floor(max);
  16. return Math.floor(Math.random() * (max - min + 1)) + min;
  17. }
  18. function go () {
  19. var xol =getR(1,3);
  20. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  21. onBetComplete = function(e){
  22. var myseed;
  23. if (xol==1) {
  24. myseed = getR(7777,9999);
  25. } else if (xol==2) {
  26. myseed = getR(50000,77777);
  27. } else {
  28. myseed = getR(50,99);
  29. }
  30. setTimeout(() => {
  31. $(".ManualSeedControls:visible input").val(myseed)}, 50);
  32. }
  33. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  34. setInterval(() => go(), 51);
  35.  
  36. Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }
  37. var good=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  38. var longer=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  39. var long=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  40. var chance = 49.95;
  41. var fraction=50000;
  42. var basebet=(longer/fraction).toFixed(8);
  43. var base=(longer/fraction).toFixed(8);
  44. var nextbet=basebet;
  45. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  46. var target = 50000;
  47. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  48. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  49. var ol=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  50. var xill=(longer/fraction).toFixed(8);
  51. var yill=(longer/fraction).toFixed(8);
  52. var old=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  53. var olf=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  54. var elf=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  55. var fib=0;
  56. var sux=0;
  57. var bet=0;
  58. var kill=0;
  59. var bob=14;
  60. var fim=0;
  61.  
  62. function dobet(){
  63. var secret=parseFloat($('#LastBetInfoSecret').html());
  64. var prof=parseFloat($('#LastBetInfoProfit').html());
  65. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  66. var pre=parseFloat(document.getElementById('BetSizeInput').value);
  67. document.getElementById('BetChanceInput').value = chance;
  68. console.clear();
  69. if (secret>=0){
  70. kill = kill+pre;
  71. }
  72. if ((kill>=(xill*14))&&(bal>=(olf+(xill*6)))) {
  73. nextbet = pre*2;
  74. xill = nextbet;
  75. kill = 0;
  76. olf = parseFloat(bal)
  77. }
  78. if ((kill>=(xill*14))&&(bal<=(elf-(xill*5)))) {
  79. nextbet = pre*2;
  80. xill = nextbet;
  81. kill = 0;
  82. elf = parseFloat(bal);
  83. }
  84. if (bal>=elf) {
  85. elf = parseFloat(bal);
  86. }
  87. if (bal<=olf) {
  88. olf = parseFloat(bal);
  89. }
  90. if (bal>=old) {
  91. yill = (parseFloat(bal)/fraction).toFixed(8);
  92. nextbet = yill;
  93. xill = yill;
  94. kill = 0;
  95. elf = parseFloat(bal);
  96. olf = parseFloat(bal);
  97. old = parseFloat(bal);
  98. }
  99. if (bal > target) {
  100. //stop();
  101. $('#notification').html('Relax & Reload');
  102. alert('Relax & Reload');
  103. console.log('Relax & Reload');
  104. return;
  105. }
  106. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  107. $('#BetLowButton').click();
  108. if (bal>good){
  109. console.log('in profit by');
  110. console.log((bal-good).toFixed(8));
  111. }else{
  112. console.log('not in profit');
  113. console.log((bal-good).toFixed(8));
  114. }
  115. }
  116. setInterval(() => dobet(), 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement