Skip to content

Instantly share code, notes, and snippets.

@12944qwerty
Last active May 25, 2020 14:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 12944qwerty/00adb3ad03acfd8e2c11fc2cbb754ad5 to your computer and use it in GitHub Desktop.
A button that will show on WoX sites to deposit all buttons
// ==UserScript==
// @name Deposit All Button
// @updateURL https://gist.githubusercontent.com/12944qwerty/00adb3ad03acfd8e2c11fc2cbb754ad5/raw/682101de6e0f2437664a3b156badf403fd612ac6/deposit_all.js
// @version 0.1
// @description A button that will show on WoX sites to deposit all buttons
// @author 12944qwerty
// @match https://worldofolympians.com/gringotts
// @match https://worldoflegend.eu/gringotts
// @match https://worldofpotter.com/gringotts
// @match https://worldofpotter.eu/gringotts
// @match https://worldofgladersunited.com/gringotts
// @match https://worldofmetahumans.com/gringotts
// @match https://worldofnephilim.com/gringotts
// @match https://worldofpotter.de/gringotts
// @match https://worldofwalkers.com/gringotts
// @match https://worldofthrones.com/gringotts
// @match https://worldofbendingarts.com/gringotts
// @match https://worldofunseenarts.com/gringotts
// @match https://worldofjademountain.com/gringotts
// @match https://worldofforgottendungeons.com/gringotts
// @match https://worldoffairytales.com/gringotts
// @match https://worldofsupernaturals.com/gringotts
// @match https://worldofalagaesia.com/gringotts
// @match https://worldofmysticfalls.com/gringotts
// @match https://worldofgalaxies.com/gringotts
// @match https://worldofmetahumans.com/gringotts
// @match https://worldofhungergames.es/gringotts
// @match https://worldofteenwolf.nl/gringotts
// ==/UserScript==
var bank_btns = document.getElementsByClassName("gringotts")[0];
console.log(bank_btns);
console.log(bank_btns.innerHTML);
bank_btns.innerHTML = '<div class="page-header clearfix"><a href=\'javascript:galleons = document.getElementsByClassName("js-user-money-galleons")[0].innerText;sickles = document.getElementsByClassName("js-user-money-sickles")[0].innerText;knuts = document.getElementsByClassName("js-user-money-knuts")[0].innerText;document.getElementById("deposit-button").click();document.getElementById("deposit-galleons").value = galleons;document.getElementById("deposit-sickles").value = sickles;document.getElementById("deposit-knuts").value = knuts;document.getElementsByClassName("swal2-confirm")[0].click();\' class="btn btn-success">Deposit All</a> <button id="deposit-button" class="btn btn-success" role="button">Deposit</button><button id="withdaw-button" class="btn btn-success" role="button">Withdraw</button> <a href="/board/view/3d8b90f3-e858-4f9e-9024-3c3ac44074ba-gringotts" class="btn btn-default pull-right">The Bank of America forum</a></div><br><i><h1 class="text-center">Τράπεζα Ευκαιρίας</h1></i><div class="row bank-account"> <div class="col-xs-12 col-md-4"> <img src="/img/woo/gold.svg" alt="Obols"> <h3 class="bank-account__title" id="gringotts-galleons">1958</h3> </div> <div class="col-xs-12 col-md-4"> <img src="/img/woo/silvercoin.svg" alt="Drachmas"> <h3 class="bank-account__title" id="gringotts-sickles">1</h3> </div> <div class="col-xs-12 col-md-4"> <img src="/img/woo/bronze.svg" alt="Minae"> <h3 class="bank-account__title" id="gringotts-knuts">13</h3> </div> </div> <div class="row"> <div class="col-xs-12"> <hr> <ul class="small"> <li>Deposit your money into The Bank of America so you won\'t lose them when you click around!</li> <li>You will earn interest when having money deposited in The Bank of America, but only the days you have logged in. So make sure to log in once a day!</li> </ul> </div> </div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment