UnderScript
Various changes to undercards, an undertale fan-made card game.
This project is maintained by feildmaster
underscript.plugin()
by feildmaster (January 6, 2026)The Plugin API is a service made to allow elevated access to UnderScript’s internals.
Syntax
underscript.plugin(name);
- name
- Name of plugin (See name restrictions)
- Return Value
- Returns
Pluginobject
Methods
- plugin.addStyle()
-
Add CSS to the document.
- plugin.events()
-
Listen to and emit events.
- plugin.logger()
-
The logger is a way to output to console, prefixing the plugin name to the console output.
- plugin.settings()
-
Provides access to the settings API.
- plugin.toast()
-
Allow plugins to send toasts.
Properties
- plugin.name
-
Output the name of the plugin.
Restrictions
Plugin names have the following restrictions:
- No two plugins may share the same name
- Plugin names cant be longer than 20 characters
- Plugin names can only contain alphanumeric characters and space (A-Z0-9 )
Any plugin names outside these bounds will trigger an error and not create a plugin
API Documentation: | UnderScript | Plugin | EventEmitter |
