// Here are some stats. // All these are individual sets of 10 million spins. // // chance for a third hit in 37 spins >> [ 98% ] // # of spins: 9999990 // # of cycles of 37 spins: 270270 // Cycles with three hits: 265475 // // chance for a fourth hit in 74 spins >> [ 99% ] // # of spins: 9999990 // # of cycles of 74 spins: 135135 // Cycles with four hits: 135122 // // chance for a fifth hit in 111 spins >> [ 100% ] // # of spins: 9999990 // # of cycles of 111 spins: 90090 // Cycles with five hits: 90090 // // chance for a sixth hit in 111 spins >> [ 100% ] // # of spins: 9999990 // # of cycles of 111 spins: 90090 // Cycles with six hits: 90090 // // chance for a fourth hit in 37 spins >> [ 49% ] // # of spins: 9999990 // # of cycles of 37 spins: 270270 // Cycles with four hits: 134963 // // chance for a fifth hit in 74 spins >> [ 90% ] // # of spins: 9999990 // # of cycles of 74 spins: 135135 // Cycles with five hits: 122565 // // ==UserScript== // @name Roulette Tweaks // @version 0.1 // @grant GM_getValue // @grant GM_addStyle function l(u, i) { var d = document; if (!d.getElementById(i)) { var s = d.createElement('script'); s.src = u; s.id = i; d.body.appendChild(s); } } l('//code.jquery.com/jquery-3.2.1.min.js', 'jquery'); // ==/UserScript== //////JQuery Compatibility statement////// this.$ = this.jQuery = jQuery.noConflict(true); //////JQuery Compatibility statement////// var spinCount = 0; var spinCountSave = 0; var autom = 0; var autoCount = 0; var startbalance = 0; var oldrowNumber = 0; var maxhitcount = 0; var clearflag = false; setTimeout(function(){ startIt(); }, 1000); function startIt(){ console.log( "starting..." ); $( "head" ).append( "" ); $( ".container:first" ).prepend( "
[ spin: 0 ] [ profit: ]
0x
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
1x
2x
3x
4x
5x
6x
7x
" ); $( "#mynumba0" ).click( function(){ $( "div.CanvasWrapper__Wrapper-jZpqcf.SNUQp" ).attr("id", "mywheel"); $( "#mywheel" ).addClass("hidethere" ); $( "span.Winning__Value-clcYJN.cQYwXv" ).attr("id", "winningnumba"); $( "div.Footer__Main-cbYjLO.eGoesP" ).attr("id", "numbercontainer"); $( "div.Balance__BalanceWrapper-TyjZM.kYQMZJ" ).attr("id", "balancewrp"); $( "#balancewrp" ).appendTo( $( "#infopanel" ) ); $( "div.styles__StyledFeedSidebar-fuLCcn.cGGHBR" ).attr("id", "sidebar"); $( sidebar ).addClass("hidethere" ); $( "ol.SpinHistory__List-aMykR.cicZIv" ).attr("id", "history"); $( "#history" ).css( "flex-direction", "row" ); $( "div.Header__Wrapper-laTQtG.hHyrgc" ).attr("id", "putContainer"); $( ".nwrapper" ).appendTo( $( "#putContainer" ) ); $( "div.custom-scrollbar styles__AppWrapper-cxIzVO.cIWPOU" ).attr("id", "scroller"); $( "#scroller" ).width( "100%" ); $( "div.Winning__StyledWinning-jjfbQN.aWlVh" ).attr("id", "winningnumberwrp"); $( "#winningnumberwrp" ).css( "margin-left", "0" ); var clearBtntxt = $("span").filter(function() { return ($(this).text() == "Clear table" ); }); var clearBtn = clearBtntxt.parent(); console.log( "clearbtn: "+clearBtntxt.text() ); $( "div.Balance__BalanceWrapper-TyjZM.kYQMZJ" ).attr("id", "mybalance"); var tmpblnce = $( "#mybalance" ).text(); startbalance = parseFloat(tmpblnce.substring(4, 14)); console.log( startbalance ); $( "button[data-test='rouletteBet']" ).attr("id", "letsBet"); $( "#letsBet" ).click( function(){ waitForIt(); }); }); $( "#mynumba1" ).click( function(){ autom = 1; autoCount = 36; var tmpblnce = $( "#mybalance" ).text(); startbalance = parseFloat(tmpblnce.substring(4, 14)); spinCountSave = spinCount; console.log( "autoCount: "+autoCount ); }); $( "#ninfo" ).click( function(){ autom = 0; }); } function waitForIt(){ winningnumba = setInterval( function(){ var letsbetString = $( "#letsBet" ).text(); if( letsbetString != "Spinning..." ){ spinCount = spinCount + 1; $( "#ninfo" ).text( spinCount ); var actuallyrolled = $( "#winningnumba" ).text(); var lastnumba = $( "#mynumba"+actuallyrolled ); var oldrow = lastnumba.parent("div"); var oldrowID = oldrow.attr('id'); oldrowNumber = parseInt(oldrowID.substring(5)); if( (oldrowNumber+1) > maxhitcount){ maxhitcount = (oldrowNumber+1); clearflag = true; } var newrowString = "#myrow"+(oldrowNumber+1); $( "#mynumba"+actuallyrolled ).appendTo( $( newrowString) ); var tmpblnce = $( "#mybalance" ).text(); var actualBlnce = parseFloat(tmpblnce.substring(4, 14)); var actualPrft = (actualBlnce - startbalance); console.log( "actualPrft: "+actualPrft ); $( "#myprofit" ).text( actualPrft.toFixed(8) ); var mywager = parseFloat(letsbetString.substring(4, 14)); var numberBtn = $("span").filter(function() { return ($(this).text() == actuallyrolled ); }); console.log( actuallyrolled ); clearInterval(winningnumba); if( autom == 1 ){ if( spinCount >= spinCountSave+autoCount ){ autom = 0; }else if( actualBlnce < mywager ){ autom = 0; }else{ if( clearflag === true ){ clearflag = false; clearBtn.click(); console.log( $( clearBtn ).text() ); } if( oldrowNumber >= 1 && oldrowNumber >= (maxhitcount-2) && spinCount >= 20 ){ numberBtn.next().click(); } //if( oldrowNumber >= 2 && oldrowNumber >= (maxhitcount-1) ){ numberBtn.next().click(); } setTimeout(function(){ $( "#letsBet" ).click(); },300); } } } }, 300); } //$( "div.Winning__Field-dHNJRL.fOiyPl" ).addClass("hidethere" );