GM config: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
→‎Usage: Repo was moved to GitHub
remove dead link
Line 5: Line 5:
== Description ==
== Description ==


The purpose of GM_config is to create a very lightweight graphical settings dialog that can be easily used in user scripts through @require.
The purpose of GM_config is to create a lightweight graphical settings dialog that can be easily used in user scripts, through <tt>@require</tt>.
A scriptwrighter using GM_config will pass an JSON object that contains the information about the values to be stored. <ref>http://code.google.com/p/gmconfig/</ref>


== Usage ==
== Usage ==


To use this tool in your script, simply include in the [[Metadata Block]]:
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 http://github.com/sizzlemctwizzle/GM_config/raw/master/gm_config.js</pre>
Line 20: Line 19:
* [http://userscripts.org/groups/68 GM_config Dev] group at userscripts.org
* [http://userscripts.org/groups/68 GM_config Dev] group at userscripts.org
* [http://userscripts.org/guides/11 Usage guide]
* [http://userscripts.org/guides/11 Usage guide]
== Footnotes ==
<references/>


[[Category:@require Library]]
[[Category:@require Library]]

Revision as of 20:06, 28 January 2011


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 http://github.com/sizzlemctwizzle/GM_config/raw/master/gm_config.js

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

See also