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. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);