UnderScript

Various changes to undercards, an undertale fan-made card game.

This project is maintained by feildmaster

underscript.addStyle()

by feildmaster (October 15, 2023)

Add CSS to the document.

Syntax

underscript.addStyle(…styles);

…styles
Styles to add to the document
Return Value
Returns Style object
Style {
  remove(),
  replace(...styles),
  append(...styles),
}

Examples

const style = underscript.addStyle('style1 {}'); // Styles: style1
style.remove(); // Styles: none
style.replace('style2 {}'); // Styles: style2
style.append('style3 {}', 'style4 {}'); // Styles: style2, style3, style4

API Documentation: | UnderScript | Plugin | EventEmitter |