Selects closet (for wearables) or deposit for every item in your quick stock. Focuses on the submit button so you only have to press enter.
// ==UserScript==
// @name Neopets: Store All
// @namespace https://github.com/saahphire/NeopetsUserscripts
// @version 1.0.1
// @description Selects closet (for wearables) or deposit for every item in your quick stock. Focuses on the submit button so you only have to press enter.
// @author saahphire
// @homepageURL https://github.com/saahphire/NeopetsUserscripts
// @homepage https://github.com/saahphire/NeopetsUserscripts
// @match *://*.neopets.com/quickstock.phtml*
// @icon https://www.google.com/s2/favicons?sz=64&domain=neopets.com
// @license Unlicense
// ==/UserScript==
/*
•:•.•:•.•:•:•:•:•:•:•:••:•.•:•.•:•:•:•:•:•:•:•:•.•:•.•:•:•:•:•:•:•:••:•.•:•.•:•.•:•:•:•:•:•:•:•:•.•:•:•.•:•.••:•.•:•.••:
........................................................................................................................
☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦
This script does the following:
- Selects "Closet" for every wearable item in your quickstock
- Selects "Deposit" for all other items
- Focuses the submit button so all you have to do is press Enter
It doesn't conflict with my other script, Highlight Wearables in Quick Stock. As always, click twice on a radio
button to cancel the item's placement in your deposit.
✦ ⌇ saahphire
☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦ ⠂⠄⠄⠂⠁⠁⠂⠄⠂⠄⠄⠂☆ ⠂⠄⠄⠂⠁⠁⠂⠄⠄⠂✦
........................................................................................................................
•:•.•:•.•:•:•:•:•:•:•:••:•.•:•.•:•:•:•:•:•:•:•:•.•:•.•:•:•:•:•:•:•:••:•.•:•.•:•.•:•:•:•:•:•:•:•:•.•:•:•.•:•.••:•.•:•.••:
*/
(function() {
'use strict';
document.querySelectorAll('[name="quickstock"] tr:has(td:nth-child(3) input):not(:has(b))').forEach(item => {
const closet = item.querySelector('input[value="closet"]');
if(closet) closet.checked = true;
else item.querySelector('input[value="deposit"]').checked = true;
});
document.querySelector('[name="quickstock"] input[type="submit"]').focus();
})();