[0]Balance-Wingman https://stake.com/?c=263733c1bc

Setup the amount from each win to be sent to Vaulet in the line(66) /////////// Setup Profit here in Decimal: 50 % = 0.50 - 75 % = 0.75 - 15 % = 0.15

目前為 2020-08-18 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         [0]Balance-Wingman https://stake.com/?c=263733c1bc
// @description  Setup the amount from each win to be sent to Vaulet in the line(66) /////////// Setup Profit here in Decimal: 50 % = 0.50 - 75 % = 0.75 - 15 % = 0.15 
// @description  Cryptocurrency is shown in Crypto and $
// @description  Create your acc here to support my work https://stake.com/?c=263733c1bc
// @version      2.3.1
// @author       Dauersendung
// @namespace    https://greasyfork.org/de/users/444902-dauersendung
// @match        https://stake.com/*
// @run-at       document-start
// ==/UserScript==
var accessToken = localStorage.getItem('session').replace(/"/g, '');
var oldBal = '';
function getCurrency() {
    return JSON.parse(localStorage.getItem("v2_currency")).currency;
}
function getRate(cur) {
    return JSON.parse(localStorage.getItem('v2_currency')).conversions.rates[cur];
}
function convertCurrency(cur, val) {
    return val * getRate(cur);
}
function getConversionElem() {
    var ele = document.querySelector("#conversionElem");
    if(ele == null) {
        ele = document.createElement("span");
        ele.id = "conversionElem";
        ele.innerText = "0.00$";
        document.querySelector(".styles__Wrap-rlm06o-0.bGSyHm").insertBefore(ele, null);
    }

    return ele;
}
window.onload = function loadpage(){
console.log(document.readyState);
if (document.readyState === 'complete') {
var oldBal = document.querySelector(".styles__Cashier-puey40-2.dMSTdD .styles__Content-rlm06o-1.ixoRjG").innerText;
var curBalEle = document.querySelector(".styles__Cashier-puey40-2.dMSTdD .styles__Content-rlm06o-1.ixoRjG").innerText;
function tresor(){
oldBal = curBalEle
if (oldBal = curBalEle){
function depositBal(depositAmount) {
var curr = getCurrency();
var 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: curr,}}]
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=" + curr + "&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(document.getElementsByClassName('styles__Content-rlm06o-1 ixoRjG').length > 0){
curBalEle = document.getElementsByClassName('styles__Content-rlm06o-1 ixoRjG')[0].innerText;
if(curBalEle != '') {
//console.log('balance changed');
//console.log('old balance : ' + oldBal);
//console.log('current balance : ' + curBalEle);
if (curBalEle > oldBal) {
var depositAmount = ((curBalEle - oldBal) * 0.15); /////////// Setup Profit here in Decimal: 50 % = 0.50 - 75 % = 0.75 - 15 % = 0.15 
depositBal(depositAmount).then(() => {
oldBal = document.querySelector(".styles__Cashier-puey40-2.dMSTdD .styles__Content-rlm06o-1.ixoRjG").innerText;
localStorage.setItem("oldBal", oldBal);
getConversionElem().innerText = convertCurrency(getCurrency(), curBalEle).toFixed(2) + "$";
oldBal = curBalEle;
});}
oldBal = curBalEle;
}}}window.setInterval(checkBalance, 751);}//timerspeed read send to tresor
else{
tresor();//if different balance run func tresor
}}var myTimer = setTimeout(tresor, 5500);}}; //timer func(tresor)