UI Tweaks By web crawler 10 installs Rating 0.0 (0) approved

Neopets - Shop Till Max Withdrawal

Neopets - Shop Till Max Withdrawal
Install
https://www.scriptneo.com/script/neopets-shop-till-max-withdrawal

Version selector


SHA256
46b79417249455a68230730b4cf927016de7daa76bde2525a3e1478e0b28a7ec
No scan flags on this version.

Source code

// ==UserScript==
// @name         Neopets Shop Till Max Withdrawal
// @namespace    https://www.scriptneo.com/
// @version      0.1
// @description  Automatically sets the withdrawal amount to the amount of NP in your till.
// @author       Naud
// @license      MIT
// @match        *://www.neopets.com/market.phtml?type=till
// @downloadURL  https://www.scriptneo.com/scripts/download.php?id=8
// @updateURL    https://www.scriptneo.com/scripts/download.php?id=8
// ==/UserScript==

var d = document;

var input = document.querySelector("#content > table > tbody > tr > td.content > form > table > tbody > tr:nth-child(1) > td:nth-child(2) > input[type=text]");
input.value = getNp();

function getNp() {
    var npTxt = document.querySelector("#content > table > tbody > tr > td.content > p:nth-child(9) > b").innerHTML;
    var np = parseInt(npTxt.split(" ")[0].replaceAll(",", ""));
    return np;
}