GM config: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
LouCypher (talk | contribs)
m →‎See also: Replaced broken GM_config Wiki link with the working one
m →‎Usage: Direct link to source and add grants.
Line 11: Line 11:
To use this tool in your script, simply include in the [[Metadata Block]], for example:
To use this tool in your script, simply include in the [[Metadata Block]], for example:


<pre class='sample'>// @require http://github.com/sizzlemctwizzle/GM_config/raw/master/gm_config.js</pre>
<pre class='sample'>
// @require https://raw.github.com/sizzlemctwizzle/GM_config/master/gm_config.js
// @grant  GM_getValue
// @grant  GM_setValue
</pre>


For detailed usage and reference, please see the "wiki" linked below.
For detailed usage and reference, please see the "wiki" linked below.

Revision as of 00:02, 27 July 2013


Note: This tool, despite its name, is not an official Greasemonkey API.

Description

The purpose of GM_config is to create a lightweight graphical settings dialog that can be easily used in user scripts, through @require.

Usage

To use this tool in your script, simply include in the Metadata Block, for example:

// @require https://raw.github.com/sizzlemctwizzle/GM_config/master/gm_config.js
// @grant   GM_getValue
// @grant   GM_setValue

For detailed usage and reference, please see the "wiki" linked below.

See also