Advertisement
coinwalk

new javascript

Jul 1st, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 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.  
  37. Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }
  38.  
  39. var longer=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  40. var long=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  41. var loss=0;
  42. var winn=0;
  43. var chance = 49.95;
  44. var nextbet;
  45. var fraction=1600;
  46. var basebet=longer/fraction;
  47. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  48. var target = long*4;
  49. var nob=getR(1,2);
  50. wyn=0;
  51. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  52. function dobet(){
  53. var secret=parseFloat($('#LastBetInfoSecret').html());
  54. var bal=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  55. var previousbet=document.getElementById('BetSizeInput').value;
  56. document.getElementById('BetChanceInput').value = chance;
  57. if (secret>500500) {
  58. winn++;
  59. wyn++;
  60. }
  61. if (winn>1){
  62. nextbet=previousbet*2;
  63. winn=0;
  64. }else if (wyn>2){
  65. nextbet=previousbet*2;
  66. winn=0;
  67. wyn=0;
  68. }else{
  69. nextbet=previousbet;
  70. }
  71. if (bal>more) {
  72. nextbet=basebet;
  73. more=(parseFloat(bal));
  74. }
  75. if (bal > target) {
  76. //stop();
  77. $('#notification').html('Relax & Reload');
  78. alert('Relax & Reload');
  79. console.log('Relax & Reload');
  80. return;
  81. }
  82. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  83. $('#BetHighButton').click();}
  84.  
  85. setInterval(() => dobet(), 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement