Namespace: API

jMod. API

API Namespace

Namespaces

Date
GM_Storage
localStorage
log
sessionStorage

Methods

staticjMod.API.addScript(js, src, id, type, async, defer){Object}

F:/Projects/jMod/main/bin/jMod.full.js, line 3972
Adds given js to the the page.
Name Type Description
js string optional The js to be added to the document.
src string optional The src for the script tag.
id string optional The id for the script tag.
type string optional The type for the new script tag.
async boolean optional Value of the async attribute.
defer boolean optional Value of the defer attribute.
Returns:
Type Description
Object node The newly created script node

staticjMod.API.addStyle(css){Object}

F:/Projects/jMod/main/bin/jMod.full.js, line 3917
Adds given css to the the page.
Name Type Description
css string The CSS to be added to the document.
Returns:
Type Description
Object node The newly created style node

staticjMod.API.Date(2)(command, args)

F:/Projects/jMod/main/bin/jMod.full.js, line 4600
(jMod.API.Date) Date API function for calling other date related functions
Name Type Description
command string Function name to be called
args object repeatable Arguments to be passed to the function