[0000000001]Stake.com HiLo Bot pattern tt

Aint got an Stake.com account yet, use my reflink to support my work here:

  1. // ==UserScript==
  2. // @name [0000000001]Stake.com HiLo Bot pattern tt
  3. // @description Aint got an Stake.com account yet, use my reflink to support my work here:
  4. // @description https://stake.com/?c=StakeGiveaways
  5. // @description to run the bot open https://stake.com/casino/games/hilo
  6. // @description set up amount by hand
  7. // @description Click button "Payout" to choose your favourite Cashout-Multiplayer
  8. // @description EG enter 5 for 5x multiplayer
  9. // @description The bot picks the lower payout cart
  10. // @match https://stake.com/casino/games/hilo
  11. // @version 5.1
  12. // @author Dauersendung
  13. // @namespace https://greasyfork.org/de/users/444902-dauersendung
  14. // @description The bot doesnt work on Tablat modus. Settings-dashbord needs to be visible on the left site.
  15. // ==/UserScript==
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. window.addEventListener('load', function () {
  25. var patternInput = prompt("Pattern");
  26. var isRunning = false;
  27.  
  28. function clickPattern(pattern, index = 0) {
  29. var buttons = document.querySelectorAll("button.cvZAjo");
  30. var higherBtn = buttons[0],
  31. lowerBtn = buttons[1];
  32. var higherBtnChance = parseFloat(higherBtn.innerText.split("\n")[1].replace("%", "")),
  33. lowerBtnChance = parseFloat(lowerBtn.innerText.split("\n")[1].replace("%", ""));
  34.  
  35. var p = pattern.split(",");
  36.  
  37. if(index < p.length) {
  38. var element = p[index];
  39.  
  40. if(element == "n") {
  41. higherBtn.click();
  42. }
  43. else if(element == "s") {
  44. lowerBtn.click();
  45. }
  46. else if(element == "e") {
  47. if(higherBtnChance > lowerBtnChance) higherBtn.click();
  48. else lowerBtn.click();
  49. }
  50. else if(element == "w") {
  51. if(higherBtnChance < lowerBtnChance) higherBtn.click();
  52. else lowerBtn.click();
  53. }
  54. index++;
  55.  
  56. if (isRunning){
  57. setTimeout(clickPattern, 800, pattern, index);}
  58. }
  59. }
  60.  
  61. document.addEventListener('DOMContentLoaded', (e) => {
  62. var btnSet4 = document.createElement("button");
  63. btnSet4.textContent = "Pattern";
  64. btnSet4.id = "Pattern"
  65. btnSet4.style.position ="absolute";
  66. btnSet4.style.backgroundColor="white"
  67. btnSet4.style.bottom="150";
  68. btnSet4.style.left="0";
  69. btnSet4.style.display="block";
  70. btnSet4.gridtemplatecolumns="1fr 1fr";
  71. btnSet4.gridgap="10px";
  72. btnSet4.style.padding="10px 24px";
  73. btnSet4.style.left = "0px";
  74. btnSet4.style.bottom = "180px";
  75. btnSet4.style.width="200px";
  76. btnSet4.style.left = "auto";
  77. btnSet4.style.fontSize="17px"
  78. btnSet4.style.zIndex = "auto";
  79. btnSet4.style.margin="4px 2px";
  80. btnSet4.style.borderColor="black";
  81. btnSet4.style.borderRadius="4px";
  82. btnSet4.style.backgroundColor="white";
  83. btnSet4.addEventListener("click", function(){
  84. var patternInput = prompt("Pattern");
  85. btnSet4.innerHTML = 'Start';
  86. //setTimeout(function(){
  87. //document.querySelector(".styles__InputField-ix7z99-3.dqIfCD").value = p ;
  88. //setTimeout(function(){document.querySelector(".styles__InputField-ix7z99-3.dqIfCD").stepUp(1);setTimeout(function(){document.querySelector(".styles__InputField-ix7z99-3.dqIfCD").stepDown(1);},220);},220)
  89. //},2020);
  90.  
  91.  
  92.  
  93. btnSet4.addEventListener('click', (e) => {
  94. if(btnSet4.innerHTML == 'Start') {
  95. isRunning = true;
  96. btnSet4.innerHTML = 'Stop';
  97. patternInput.setAttribute('disabled', 'disabled');
  98. clickPattern(patternInput.value, 0);
  99. } else {
  100. isRunning = false;
  101. btnSet4.innerHTML = 'Start';
  102. patternInput.removeAttribute('disabled');
  103. }
  104. })
  105. },2020)
  106. document.body.appendChild(btnSet4);
  107. },2020)
  108. })
  109.  
  110.  
  111.