Last active
May 9, 2022 17:33
-
-
Save gourytch/516a67ffd37c61113df238fee8ccc6cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FBCBot | |
// @namespace https://localhost/fbcbot | |
// @description freebitco.in bot | |
// @include https://freebitco.in/* | |
// @version 1 | |
// @grant none | |
// @noframes | |
// @run-at document-idle | |
// ==/UserScript== | |
//alert("FBCBOT LOADED") | |
//Общие переменные | |
var numberWin = 0; | |
var numberLose = 0; | |
var gamesLose = []; | |
var games = []; | |
var firstStake = 0.00000001; | |
textField = document.getElementsByClassName("lottery_link bold")[0].parentElement; | |
textField.innerHTML = "Для начала нажми кнопку"; | |
var lastResult = 0; | |
var nextButton; | |
var oldSerialLose = 0; | |
var serialLose = 0; | |
var serialWin = 0; | |
var lastSerialLose = 0; | |
//начальные значения | |
var startPosition = 7; | |
var stakeProfit = 0.00000141; | |
var stakeauto = 0; | |
var i = 1; | |
var sta = 0; | |
//значения для статистики | |
var profit3 = 0; | |
var profit4 = 0; | |
var profit5 = 0; | |
var profit6 = 0; | |
var profit7 = 0; | |
var profit8 = 0; | |
var addprofit3 = 0.00000002; | |
var addprofit4 = 0.00000006; | |
var addprofit5 = 0.00000014; | |
var addprofit6 = 0.00000029; | |
var addprofit7 = 0.00000059; | |
var addprofit8 = stakeProfit; | |
var countProfit3 = 0; | |
var countProfit4 = 0; | |
var countProfit5 = 0; | |
var countProfit6 = 0; | |
var countProfit7 = 0; | |
var countProfit8 = 0; | |
function main(){ | |
setTimeout(function() { | |
balance = parseFloat(document.getElementById("balance").innerHTML); | |
if (sta == 0) { | |
i=1; | |
while (sta < balance) { | |
sta = (8191*(i+1)+500)*0.00000001; | |
stakeauto = (i-1)*0.00000001; | |
i++; | |
} | |
} | |
stake = parseFloat(document.getElementById("double_your_btc_stake").value); | |
isWin = !(document.getElementById("double_your_btc_bet_lose").style.display == "block"); | |
result = parseInt(document.getElementById("multiplier_first_digit").innerHTML | |
+ document.getElementById("multiplier_second_digit").innerHTML | |
+ document.getElementById("multiplier_third_digit").innerHTML | |
+ document.getElementById("multiplier_fourth_digit").innerHTML | |
+ document.getElementById("multiplier_fifth_digit").innerHTML); | |
//Если это не выйгрыш и не поражение | |
if(document.getElementById("double_your_btc_bet_lose").style.display != "block" | |
&& document.getElementById("double_your_btc_bet_win").style.display != "block"){ | |
serialLose = serialLose + 1; | |
textField.innerHTML = " Количество поражений: " + serialLose | |
+ " MAX серия: " + lastSerialLose; | |
main(); | |
return; | |
} | |
//При нулевом балансе | |
if(balance <= 0){ | |
main(); | |
return; | |
} | |
if(lastResult != result){ | |
lastResult = result; | |
main(); | |
return; | |
} | |
if(document.getElementById("double_your_btc_bet_lose").style.display == "block"){ | |
serialWin = 0; | |
serialLose = serialLose + 1; | |
}else if (lastSerialLose < serialLose) { | |
oldSerialLose = serialLose; | |
lastSerialLose = serialLose; | |
serialLose = 0; | |
serialWin = serialWin + 1; | |
i = 1; | |
while (sta < balance) { | |
sta = (8191*(i+1)+500)*0.00000001; | |
stakeauto = (i-1)*0.00000001; | |
i++; | |
} | |
}else if (lastSerialLose > serialLose) { | |
if (serialLose > 5) {oldSerialLose = serialLose;} | |
serialLose = 0; | |
serialWin = serialWin +1; | |
i = 1; | |
while (sta < balance) { | |
sta = (8191*(i+1)+500)*0.00000001; | |
stakeauto = (i-1)*0.00000001; | |
i++; | |
} | |
} | |
//Запись результата | |
if(games.length == 50){ | |
games.shift(); | |
} | |
games.push({"result":result,"stake":stake,"hilo":nextButton,"isWin":isWin}); | |
//Обработка результата | |
//Hi,Lo | |
sum = 0;//Процент выпавших | |
maxSum = 0;//Максимально возможное значение | |
wins = 0;//Максимально возможное значение | |
for(i=0;i<games.length;i++){ | |
maxSum = maxSum + i + 1; | |
if(games[i].result > 5000){ | |
sum = sum + i + 1; | |
} | |
if(games[i].isWin){ | |
wins = wins + i + 1; | |
} | |
} | |
wins = wins * 100 / maxSum; | |
sum = sum * 100 / maxSum; | |
//считаем возможный профит | |
if(!isWin && serialLose > 2){ | |
profit3 = profit3 + addprofit3; | |
countProfit3 = countProfit3 + 1; | |
} | |
if(!isWin && serialLose > 3){ | |
profit4 = profit4 + addprofit4; | |
countProfit4 = countProfit4 + 1; | |
} | |
if(!isWin && serialLose > 4){ | |
profit5 = profit5 + addprofit5; | |
countProfit5 = countProfit5 + 1; | |
} | |
if(!isWin && serialLose > 5){ | |
profit6 = profit6 + addprofit6; | |
countProfit6 = countProfit6 + 1; | |
} | |
if(!isWin && serialLose > 6){ | |
profit7 = profit7 + addprofit7; | |
countProfit7 = countProfit7 + 1; | |
} | |
if(!isWin && serialLose > 7){ | |
profit8 = profit8 + stakeauto; | |
countProfit8 = countProfit8 + 1; | |
} | |
textField.innerHTML = " Количество поражений: " + serialLose | |
+ " MAX серия: " + lastSerialLose | |
+ " предыдущая серия поражений: " + oldSerialLose | |
+ "<br> Профит 3: " + profit3.toFixed(8) + " Количество Профита: " + countProfit3 + "<br>" | |
+ " Профит 4: " + profit4.toFixed(8) + " Количество Профита: " + countProfit4 + "<br>" | |
+ " Профит 5: " + profit5.toFixed(8) + " Количество Профита: " + countProfit5 + "<br>" | |
+ " Профит 6: " + profit6.toFixed(8) + " Количество Профита: " + countProfit6 + "<br>" | |
+ " Профит 7: " + profit7.toFixed(8) + " Количество Профита: " + countProfit7 + "<br>" | |
+ " Профит 8: " + profit8.toFixed(8) + " Количество Профита: " + countProfit8 + "<br>" | |
+ " Баланс для следующего уровня: " + sta.toFixed(8) + " Уровень: " + stakeauto.toFixed(8); | |
// увеличиваем ставку если серия поражений больше порогового значения | |
//if(games.length == 50){ | |
if(!isWin && serialLose > startPosition){ | |
stake = stake * 2 + stakeauto; | |
}else{ | |
stake = firstStake; | |
} | |
//} | |
//если баланс меньше ставки то переходим к самой маленькой ставке | |
if(stake == 0 || balance < stake){ | |
stake = firstStake; | |
} | |
// определяемся с кнопкой какую нажать | |
if(nextButton == "double_your_btc_bet_hi_button" && !isWin){ | |
nextButton = "double_your_btc_bet_lo_button"; | |
}else if(nextButton == "double_your_btc_bet_lo_button" && !isWin){ | |
nextButton = "double_your_btc_bet_hi_button"; | |
} | |
// нажимаем кнопку | |
document.getElementById("double_your_btc_stake").value = stake.toFixed(8); | |
setTimeout(function() { | |
document.getElementById(nextButton).click(); | |
},50); | |
},100); | |
}; | |
document.getElementById("double_your_btc_bet_hi_button").onclick = function(){ | |
nextButton = "double_your_btc_bet_hi_button"; | |
main(); | |
}; | |
document.getElementById("double_your_btc_bet_lo_button").onclick = function(){ | |
nextButton = "double_your_btc_bet_lo_button"; | |
main(); | |
}; | |
// autostart | |
setTimeout(function() {document.getElementById('double_your_btc_link').click();}, 300); | |
setTimeout(function() { | |
document.getElementById("double_your_btc_stake").value = '0.00000001'; | |
nextButton = "double_your_btc_bet_lo_button"; | |
// нажимаем кнопку | |
setTimeout(function() { | |
document.getElementById(nextButton).click(); | |
},50); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment