Get or set a Config value
Properties:
Name |
Type |
Description |
host |
object
|
|
scopeLock |
boolean
|
|
secure |
boolean
|
|
browser |
object
|
|
getScriptFileInfo |
boolean
|
Enable / Disable getting information about the userscript file |
script |
object
|
Properties
Name |
Type |
Description |
username |
string
|
Owner's username hosted on myUserJS |
script_name |
string
|
Script's short-name (can be fount in script's hosted URL on myUserJS) |
|
Update |
object
|
Properties
Name |
Type |
Description |
DOMTiming |
boolean
|
Generate and send page/script timing information to the server. |
args |
object
|
Default arguments to be sent to myUserJS's statistical engine. |
updateVeriableName |
string
|
The global variable that will store the server response. |
getType |
string
|
Type of information you want returned from the server, and which partition to store the download/arguments under. |
XMLHttpRequest |
boolean
|
(Experimental) Use XMLHttpRequest when sending request (only available to userscripts that load jMod via require) |
jQuery |
boolean
|
(broken) |
getStats |
boolean
|
Get script stats from the server (only available when getType="data") |
|
Error |
object
|
|
API |
object
|
Properties
Name |
Type |
Description |
log |
object
|
Properties
Name |
Type |
Description |
disabled |
array
|
List of console functions to disable |
verbosity_level |
number
|
Verbosity level |
GM_log |
boolean
|
Enable/Disable use of GM_log |
Firebug |
boolean
|
Enable/Disable use of Firebug |
WebConsole |
boolean
|
Enable/Disable use of WebConsole |
debug |
boolean
|
Enable/Disable debugging of logging functions |
|
Storage |
object
|
Properties
Name |
Type |
Description |
prefix |
string
|
Prefix for all stored values |
engine |
string
|
Default storage engine [GM_Storage or localStorage] (Will default to localStorage when GM_Storage is not available) |
|
|
Language |
object
|
Properties
Name |
Type |
Description |
Current |
string
|
Current language |
|
jQueryExtensions |
object
|
Properties
Name |
Type |
Description |
CrossOrigin |
object
|
Enable/Disable use of GM_xmlhttpRequest in your jQuery instance after using addCrossOriginSupport on it. |
|
debug |
boolean
|
|
Example
// Get the current value of script.username
jMod('get', 'script.username')
// or
jMod('script.username')
// or
jMod.Config('script.username');
// or
jMod.Config.script.username;
// Set the current value of script.username
jMod('set', 'script.username', 'foo')
// or
jMod('script.username', 'foo')
// or
jMod.Config('script.username', 'foo');
// or
jMod.Config.script.username = 'foo';
-
staticjMod.Config.Modal
-
Modal Configuration Options
Properties:
Name |
Type |
Description |
enabled |
boolean
|
is enabled |
Example
// Get the current value of Modal.enabled
jMod('get', 'Modal.enabled')
// or
jMod.Config('Modal.enabled');
// or
jMod.Config.Modal.enabled;
-
staticjMod.Config.Notifications
-
Notification Configuration Options
Properties:
Name |
Type |
Description |
enabled |
boolean
|
is enabled |
Example
// Get the current value of Notifications.enabled
jMod('get', 'Notifications.enabled')
// or
jMod.Config('Notifications.enabled');
// or
jMod.Config.Notifications.enabled;
-
staticjMod.Config.Settings
-
Settings Configuration Options
Properties:
Name |
Type |
Description |
enabled |
boolean
|
is enabled |
Example
// Get the current value of Settings.enabled
jMod('get', 'Settings.enabled')
// or
jMod.Config('Settings.enabled');
// or
jMod.Config.Settings.enabled;
-
staticjMod.Config.Tabs
-
Tabs Configuration Options
Example
// Get the current value of Ext.enabled
jMod('get', 'Tabs.enabled')
// or
jMod.Config('Tabs.enabled');
// or
jMod.Config.Tabs.enabled;
-
-
Tooltip Configuration Options
Example
// Get the current value of Ext.enabled
jMod('get', 'Tooltip.enabled')
// or
jMod.Config('Tooltip.enabled');
// or
jMod.Config.Tooltip.enabled;