GM config: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
→See also: Removed the link to the guide since it's out of date and added a link to the new wiki |
Recommend the OUJS url since it is whitelisted by GreasyFork and the script page will automatically link to the library page on OUJS. |
||
(4 intermediate revisions by 4 users not shown) | |||
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 | <pre class='sample'> | ||
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js | |||
// @grant GM_getValue | |||
// @grant GM_setValue | |||
</pre> | |||
For detailed usage and reference, please see the " | For detailed usage and reference, please see the "wiki" linked below. | ||
== See also == | == See also == | ||
* [ | * [https://github.com/sizzlemctwizzle/GM_config/wiki GM_config Wiki] | ||
* [https://github.com/sizzlemctwizzle/GM_config/ Source, at github.com] | * [https://github.com/sizzlemctwizzle/GM_config/ Source, at github.com] | ||
* [http://sizzlemctwizzle.github.io/GM_config/ Live Demo] | |||
[[Category:@require Library]] | [[Category:@require Library]] |
Latest revision as of 22:27, 13 March 2015
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://openuserjs.org/src/libs/sizzle/GM_config.js // @grant GM_getValue // @grant GM_setValue
For detailed usage and reference, please see the "wiki" linked below.