UnderScript Object

by feildmaster (October 11, 2026)

Methods

underscript.onPage()

Check if you’re on a page.

underscript.buyPacks()

Buy packs. Only exists on the Packs page, so check for it first.

underscript.openPacks()

Opens packs and outputs the results (via toast). Only one set of packs can be opened at a time, it throws an error if packs are already being opened.

underscript.plugin()

The Plugin API is a service made to allow elevated access to UnderScript’s internals.

underscript.streamerMode()

Detect if streamer mode is active.

Properties

underscript.constants

Helpers for working with items, priorities and rarities when you are not sure what you were given. They accept an item, priority or rarity, or the text for one, like 'gold', 'high' or 'DT'.

underscript.craft

Settings for crafting and disenchanting. Only exists on the Crafting page, so check for it first.

underscript.item

Names for the things that can be rewarded or spent in the game. Compare against these instead of writing the text yourself.

underscript.priority

Names for deciding what goes first, used when a filter or similar has to be put in order. Anywhere one is accepted you can also pass its name as text, such as 'high'.

underscript.rarity

Names for card rarities. Compare against these instead of writing the text yourself. Anywhere one is accepted you can also pass its name as text, such as 'EPIC'.

underscript.semver

Compare versions. Each method compares a version you give it to a second version, current, which defaults to the version of UnderScript that is running. That makes it useful for checking if a feature exists.

underscript.user

Information about the logged in user. Everything that looks things up returns a promise.

underscript.utils

Helpers that UnderScript uses itself.

underscript.version

The version of UnderScript being used.