Casino-Balance-wingman-lifesafer; Send shares from each profit to Trezor

Send 20 % from each won betround to your trezor ; ) youll love it

06.08.2020 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Casino-Balance-wingman-lifesafer; Send shares from each profit to Trezor
// @description  Send 20 % from each won betround to your trezor ; ) youll love it
// @description  Create your acc here to support my work https://stake.com/?c=263733c1bc
// @version      1.1
// @author       Dauersendung
// @namespace    https://greasyfork.org/de/users/444902-dauersendung
// @match https://stake.com/casino?currency=xrp&modal=vault&operation=deposit
// @match https://stake.com/?currency=btc&modal=vault&operation=deposit
// @match https://stake.com/?currency=doge&modal=vault&operation=deposit
// @match https://stake.com/?currency=xrp&modal=vault&operation=deposit
// @match https://stake.com/?currency=eth&modal=vault&operation=deposit
// @match https://stake.com/?currency=ltc&modal=vault&operation=deposit
// @match https://stake.com/?currency=trx&modal=vault&operation=deposit
// @match https://stake.com/?currency=bch&modal=vault&operation=deposit
// @match https://stake.com/?currency=eos&modal=vault&operation=deposit
// @match https://stake.com/?currency=btc&modal=deposit
// @match //your url here
// @description thats it.
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at document-start
// ==/UserScript==

var oldBal = 0;
var accessToken = localStorage.getItem('session').replace(/"/g, '');

function depositBal(depositAmount) {
    data = [
        {
            operationName: "CreateVaultDeposit",
            query: "mutation CreateVaultDeposit($amount: Float!, $currency: CurrencyEnum!) { createVaultDeposit(amount: $amount, currency: $currency) { id amount currency user { id balances { available { amount currency __typename } vault { amount currency __typename } __typename } __typename } __typename } } ",
            variables: {
                amount: depositAmount,
                currency: "xrp",
            }
        }
    ]
    return fetch("https://api.stake.com/graphql", {
        "credentials": "omit",
        "headers": {
            "content-type": "application/json",
            'x-access-token': accessToken,
            'x-lockdown-token': undefined
        },
        "referrer": "https://stake.com/?currency=xrp&modal=vault&operation=deposit",
        "body": JSON.stringify(data),
        "method": "POST",
        "mode": "cors"
    });
}

function checkBalance() {
    var curBalEle = document.querySelector(".styles__Cashier-puey40-2.dMSTdD .styles__Content-rlm06o-1.ixoRjG");
    if (!curBalEle) return false;

    var curBal = curBalEle.innerText;
    if (!curBal) return false;

    if (curBal > oldBal) {
        var depositAmount = ((curBal - oldBal) * 20) / 100;
        depositBal(depositAmount).then(() => oldBal = curBalEle.innerText);
    }
}

window.setInterval(checkBalance, 3300);