Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. function changeBasebet(newbasebet){
  2. var newBet = parseFloat(newbasebet).toFixed(8);
  3. document.getElementsByClassName('amount')[0].value = newBet.toString();
  4. var event = new Event('blur');
  5. document.getElementsByClassName('amount')[0].dispatchEvent(event);
  6. }
  7.  
  8.  
  9.  
  10. function changeSeed() {
  11. setTimeout(function () {
  12. var btnMenu = document.querySelector("#root > div > section > div.header-container > div > div > button");
  13. btnMenu.click();
  14. setTimeout(function () {
  15. var btnFairness = document.querySelector("#root > div > section > div.alternative-menu.visible > button:nth-child(16)");
  16. btnFairness.click();
  17. setTimeout(function () {
  18. var btnChangeseed = document.querySelector("body > div:nth-child(11) > div > div > div > section > div.top > button");
  19. btnChangeseed.click();
  20. setTimeout(function () {
  21. var btnCloseFairness = document.querySelector("body > div:nth-child(11) > div > div > button");
  22. btnCloseFairness.click();
  23. /*setTimeout(function(){
  24. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > div.action.autoRoll > button").click();
  25. },3000); */
  26. }, 2000);
  27. }, 2000);
  28. }, 2000);
  29. }, 2000);
  30. }
  31.  
  32. function changePayout(newpayout){
  33. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.info > figure.p0_all > div > input").value = newpayout;
  34. var event = new Event('blur');
  35. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.info > figure.p0_all > div > input").dispatchEvent(event);
  36. }
  37.  
  38. function changeLimit(newlimit){
  39. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.bet > figure.nrolls > section > div > input").value = newlimit;
  40. var event = new Event('blur');
  41. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.bet > figure.nrolls > section > div > input").dispatchEvent(event);
  42. }
  43.  
  44.  
  45.  
  46.  
  47. document.querySelector("#root > div > section > div.game_transactions > div > div:nth-child(2)").click();
  48. document.querySelector("#root > div > section > div:nth-child(6) > section > header > div.inactive").click();
  49. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.loss-win > figure:nth-child(2) > div.flex_h.flex_c_b.m5_d > div > div").click();
  50.  
  51.  
  52.  
  53.  
  54. changePayout("9.9");
  55. let initbb = "0.00000150";
  56. changeBasebet(initbb);
  57. let initlimit = 5;
  58. changeLimit(initlimit);
  59.  
  60. var currentSerie = 1;
  61.  
  62. var target = document.getElementsByClassName("prevRolls")[0];
  63. var automate = new MutationObserver(function (mutations) {
  64. var temp = document.getElementsByClassName("table-row")[0];
  65. var x = temp.getElementsByClassName("success");
  66.  
  67. if (x[0]){
  68.  
  69. console.log("win");
  70. currentSerie = 1
  71. changeBasebet(initbb);
  72. changeLimit(initlimit);
  73. changePayout("9.9");
  74. changeSeed();
  75.  
  76. }else{
  77. var currentLimit = document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > section.bet > figure.nrolls > section > div > input").value;
  78. if(parseInt(currentLimit) == 0){
  79. currentSerie ++;
  80. if(currentSerie == 2 || currentSerie == 3){
  81. changeLimit(5);
  82. changePayout("9.9");
  83. var betamount = document.getElementsByClassName('amount')[0].value;
  84. var newBet = parseFloat(betamount * 2);
  85. changeBasebet(newBet);
  86. }
  87. if(currentSerie == 4){
  88. changeLimit(50);
  89. changePayout("99.49");
  90. var betamount = document.getElementsByClassName('amount')[0].value;
  91. var newBet = parseFloat(betamount * 0.2);
  92. changeBasebet(newBet);
  93. }
  94. if(currentSerie == 5 || currentSerie == 6){
  95. changeLimit(50);
  96. changePayout("99.49");
  97. var betamount = document.getElementsByClassName('amount')[0].value;
  98. var newBet = parseFloat(betamount * 2);
  99. changeBasebet(newBet);
  100. }
  101. if(currentSerie == 7){
  102. changeLimit(500);
  103. changePayout("1042");
  104. var betamount = document.getElementsByClassName('amount')[0].value;
  105. var newBet = parseFloat(betamount * 0.2);
  106. changeBasebet(newBet);
  107. }
  108. if(currentSerie == 8 || currentSerie == 9){
  109. changeLimit(500);
  110. changePayout("1042");
  111. var betamount = document.getElementsByClassName('amount')[0].value;
  112. var newBet = parseFloat(betamount * 2);
  113. changeBasebet(newBet);
  114. }
  115.  
  116. if(currentSerie < 10){
  117. setTimeout(function(){
  118. document.querySelector("#root > div > section > div:nth-child(6) > section > div > section > div.dashb.cornerGrd1.p10_all_i > div.action.autoRoll > button").click();
  119. },1000);
  120. }
  121.  
  122.  
  123. }
  124. }
  125.  
  126. });
  127. var config = {
  128. characterData: true,
  129. subtree: true
  130. };
  131. automate.observe(target, config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement