NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name CSGODICEGAME for Tampermonkey
// @namespace http://tampermonkey.net/
// @version 1.0
// @description
// @author Hawaxi/pLuteczko
// @match https://csgodicegame.com/
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
/* jshint -W097 */
'use strict';
// Your code here...
var init = 0.01 // initial bet amount
var delay = 100 // if you have bad internet connection or your computer is running slow increase this value
var maxBetValue = 50 // if you dont want to lose everything
var start = init
var $Button=$("#roll")
var $bet=$("#bet")
function roll()
{
$bet.val(start)
$Button.click()
refreshIntervalId=setInterval(roll2,delay);
}
function roll2()
{
var thestring = document.getElementById('roll').value
var thenumber = retnum(thestring)
if (thenumber < 4875)
{
start = init
}
if(thenumber > 4875)
{
start = start * 2
}
if(start > maxBetValue)
{
start = init
}
$Button.click()
clearInterval(refreshIntervalId)
roll()
}
function retnum(str) {
var num = str.replace(/[^0-9]/g, '');
var liczba = parseInt(num);
return liczba;
}
roll()