// ==UserScript==
//
// @name SatownediBet
//
// @description Martingale Betting System for SatoshiBet.com
//
// @namespace
//
// @author XXX
//
// @version 1.4
//
// @include https://satoshibet.com/*
//
// @include http://satoshibet.com/*
//
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
//
// ==/UserScript==
var startingBet = prompt("Please enter your starting bet here:", "Ex. 0.001");
startingBet = parseFloat(startingBet);
document.getElementById('bet-bt')
.onclick = function () {
function start() {
setTimeout(start, 1000);
var ifLose = document.getElementById('result-text')
.innerHTML;
if (ifLose.length > 4) {
document.getElementById("bet-multiplier")
.click();
document.getElementById("bet-bt")
.click();
} else {
var currentBet = document.getElementById('bet-amount')
.value;
for (x = currentBet; x != startingBet; x = x / 2) {
document.getElementById("bet-divider")
.click();
}
document.getElementById("bet-bt")
.click();
}
};
start();
};