Neopets Quicker-stock

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

المؤلف
darknstormy
التثبيت اليومي
0
إجمالي التثبيت
151
التقييمات
0 0 0
الإصدار
1.7
تم إنشاؤه
06-07-2024
تم تحديثه
20-09-2024
الحجم
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.