Skip to content

Instantly share code, notes, and snippets.

@diceroll123
Created February 18, 2023 03:49
Show Gist options
  • Save diceroll123/c6751fcacf3ccf3b1b64280edf4dd38e to your computer and use it in GitHub Desktop.
Save diceroll123/c6751fcacf3ccf3b1b64280edf4dd38e to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Neopets - Bank Improvements
// @match *://*.neopets.com/bank.phtml
// @author diceroll123
// @version 1.0.0
// ==/UserScript==
var onhand = $("#npanchor").text().replace(/,/g, "");
var inbank = $("#txtCurrentBalance").text().replace(/,/g, "").replace(/ NP/g, "");
$("[name='amount']:first").val(onhand); // deposit all
$("[name='amount']:eq(2)").val(onhand); // deposit all
$("[name='amount']:eq(1)").val(inbank); // withdraw all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment