Skip to content

Instantly share code, notes, and snippets.

View ruzli's full-sized avatar

Ruzli ruzli

  • Russian Federation, Moscow
View GitHub Profile
@ruzli
ruzli / Hotkeys Implementation for Ether-Dice.js
Created February 10, 2021 16:38
Hotkeys Implementation for Ether-Dice
var map = {};
chat = document.getElementsByClassName("form-control")[ 0 ];
function getBalance() {
var newBalance = document.querySelector("#top-bar > div > div > div.balance-container.nav-item > span:nth-child(2)").innerText;
var conBalance = String(newBalance.replace(",", "."));
return Number(conBalance);
}
@ruzli
ruzli / CompoundScript [~~~Script by Daffie! Added two features [trailing stop & max bet reset] by Ruzli~~~].js
Last active November 17, 2021 22:05
CompoundScript [~~~Script by Daffie! Added two features [trailing stop & max bet reset] by Ruzli~~~]
var config = {
headerCommon: { label: "Common Settings", type: "noop", value: "" },
baseBet: { label: 'Base Bet', type: 'balance', value: 1000 },
minPayout: { label: 'Target Min', type: 'multiplier', value: 1.08 },
maxPayout: { label: 'Target Max', type: 'multiplier', value: 50.00 },
divPayout: { label: 'Target Div', type: 'multiplier', value: 0.80 },
compRate: { label: 'Compound %', type: 'multiplier', value: 0.02 },
compStep: { label: 'Compound At', type: 'multiplier', value: 1.10 },
headerCond: { label: "Conditions Settings", type: "noop", value: "" },
@ruzli
ruzli / Good old times.js
Created November 18, 2020 03:51
Good old times!
var config = {
clientSeed: { label: "Client seed", type: "text", value: "123" },
stopiflost: { value: 0, type: 'text', label: 'Protect Balance' },
}
var protect = config.stopiflost.value;
var now = (this.balance / 100);
const baseBet = 300 /* In satoshi, which means it will place 2 bits */
const target = 1.5
@ruzli
ruzli / Community gift! List of payouts-bets and nice control over lists.js
Last active December 12, 2020 17:34
Community gift! List of payouts/bets and nice control over lists
var config = {
list_bet: {
value: 'list1', type: 'radio', label: 'Pick Bet List',
options: {
list1: { value: '10, 9, 7, 6, 5, 20, 18, 16, 14, 32, 20, 30, 26, 22, 18, 14, 20, 15, 20, 25, 45', type: 'text', label: 'Bets 1' },
list2: { value: '320, 170, 37, 76, 51, 50, 118, 16, 141, 72, 60, 30, 26, 77, 18, 14, 20, 35, 20, 85, 145', type: 'text', label: 'Bets 2' },
list3: { value: '320, 170, 37, 76, 51, 50, 118, 16, 141, 72, 60, 30, 26, 77, 18, 14, 20, 35, 20, 85, 145', type: 'text', label: 'Bets 3' },
},
},
list_target: {
@ruzli
ruzli / Simple martingale with stop loss and stop profit.js
Last active October 20, 2020 09:57
Simple martingale with stop loss and stop profit
var config = {
baseBet: { label: "Base bet", type: "balance", value: 100 }, // how many satoshis to bet initially
target: { label: "Target", type: "multiplier", value: 2 }, // target multiplier
betMultiplier: { label: "Bet multiplier", type: "multiplier", value: 2 }, // what to multiply the bet size by when we lose a wager
stopBalance: { label: "Stop if profit above[0 = OFF]", type: "balance", value: 100000 },
stopLoss: { label: "Stop if lose more than[0 = OFF]", type: "balance", value: -100000 },
}
var engine = this
var highBalance = this.balance;
@ruzli
ruzli / Pumpkins.js
Last active October 16, 2020 01:11
Pumpkins
var config = {
wager: { label: "Wager", type: "balance", value: 100 },
min_pay: { label: "Min payout", type: "multiplier", value: 5 },
max_pay: { label: "Max payout", type: "multiplier", value: 40 },
max_loss: { label: "Max lose", type: "balance", value: -100000 },
bets_prog: { label: "Progression betting", type: "checkbox", value: true },
prog_reset: { label: "Progression reset", type: "checkbox", value: false },
progression_bet_amount: { label: "Bet Progression", type: "balance", value: 100 },
};
@ruzli
ruzli / Simple data gathering.js
Created September 6, 2020 16:33
Simple data gathering
var rolls = 0
var history = [];
var super_nyans = 0, nyans = 0;
while (true) {
rolls++;
const {multiplier} = await this.bet(100, 1.01);
@ruzli
ruzli / playAfterCatch.js
Last active July 31, 2020 20:42
playAfterCatch
var config = {
basebet: { label: "Base Bet", type: "balance", value: 100 },
catchBet: { label: "Catch Bet", type: "balance", value: 3000 },
normalTarget: { label: "Base Target", type: "multiplier", value: 40 },
catchTarget: { label: "Catch Target", type: "multiplier", value: 100 },
catchRolls: { label: "Catch Rolls [-1 = OFF]", type: "number", value: 15 },
};
var basebet = config.basebet.value, catchBet = config.catchBet.value;
var normalTarget = config.normalTarget.value, catchTarget = config.catchTarget.value, catchRolls = config.catchRolls.value;
@ruzli
ruzli / 20x_original.js
Created June 25, 2020 05:20
20x original
var config = {
baseBet: { label: "Base bet", type: "balance", value: 200 },
target: { label: "Target", type: "multiplier", value: 20 },
multiplyBy: { label: "Multiply by", type: "multiplier", value: 2 },
addupmultiply: { label: "Add-up/Multiply", type: "checkbox", value: false },
multiplyByExtra: { label: "Multiply by Extra", type: "multiplier", value: 2 },
skipsAmount: { label: "Skips Amount", type: "number", value: 10 },
maxLoses: { label: "Max Loses", type: "number", value: 10 },
maxLosesExtra: { label: "Max Loses Extra", type: "number", value: 10 },
minProfit: { label: "Min Profit", type: "balance", value: -28000000 },
@ruzli
ruzli / 10x_skipping_orig.js
Last active June 25, 2020 06:16
10x original good version
var config = {
baseBet: { label: "Base bet", type: "balance", value: 200 },
target: { label: "Target", type: "multiplier", value: 10 },
multiplyBy: { label: "Multiply by", type: "multiplier", value: 3 },
addupmultiply: { label: "Add-up/Multiply", type: "checkbox", value: false },
multiplyByExtra: { label: "Multiply by Extra", type: "multiplier", value: 3 },
skipsAmount: { label: "Skips Amount", type: "number", value: 12 },
maxLoses: { label: "Max Loses", type: "number", value: 9 },
maxLosesExtra: { label: "Max Loses Extra", type: "number", value: 10 },
minProfit: { label: "Min Profit", type: "balance", value: -28000000 },