Neopets Quicker-stock

Highlights and selects pre-determined option for items on the Quick Stock Page based on their categorization.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
darknstormy
今日安裝
0
安裝總數
74
評價
0 0 0
版本
1.7
建立日期
2024-07-06
更新日期
2024-09-20
尺寸
27.8 KB
授權條款
MIT
腳本執行於

You have a couple of options to modify this script to add new items:
1) Make a new array of items of whatever category, then add it as an additional parameter to the concat function that applies to the action list you want for that item, ex:

const NEW_CATEGORY = [ "Some Item Name", "Another Item Name" ]
const STOCK_ITEM_LIST = GIANT_SPACE_FUNGUS_SELL_ITEM_DROPS.concat(TAN_CODESTONES, NEW_CATEGORY)

will cause "Some Item Name" and "Another Item Name" to have the stock option selected.

Alternatively, you can just add the items into an existing array that falls under the action you want.

I'm not going to pretend this is a pretty script. It isn't. It's functional and it uses a lot of brute force techniques.

If you want a different action for a category, you can simply remove that array from the concatenated list and put it into the action you do want. If you do not want an item to have an action selected, simply delete it from all of the arrays where it is found.

It's recommended that you double-check the work of this script, especially if it has determined items should be discarded, to ensure that you do not accidentally trash items of value or that you might otherwise want to keep.