Various changes to undercards, an undertale fan-made card game.
This project is maintained by feildmaster
Underscript exposes a public API via the variable underscript
.
Add CSS to the document.
Check if you’re on a page.
Opens packs and outputs the results (via toast).
The Plugin API is a service made to allow elevated access to UnderScript’s internals.
Detect if streamer mode is active.
The version of UnderScript being used.
// Open 10 DR packs
underscript.openPacks(10, 'DR');
// Log to console if streaming
if (underscript.streamerMode()) console.log('Streaming!');
// Log to console if on pack page
if (underscript.onPage('Packs')) console.log('On Pack page!');
// or
underscript.onPage('Packs', () => console.log('On Pack page!'));