GM_config Dev


A group for people who want to join in the development of a lightweight and reusable graphical settings framework for inclusion in user scripts.

Google Code: http://code.google.com/p/gmconfig/ (used for hosting)

Source: http://gmconfig.googlecode.com/svn/trunk/gm_config.js (url will always be latest version)

Experimental: http://userscripts.org/scripts/show/49700 (developed by JoeSimmons)

Usage Guide: http://userscripts.org/guides/11

Example video: http://www.youtube.com/watch?v=_IzosqVH-uc

IRC Chat: irc.freenode.net; room: #gmconfig

Screenshot:

Code to produce above screenshot:
GM_config.init('Configurable Options Script', {
                'name': {
                    'section': ['Personal Info About Yourself', 'We need this info to do stuff'],
                    'label': 'Name',
                    'type': 'text',
                    'default': 'Joe Simmons'
                },
                'age': {
                    'label': 'Age',
                    'type': 'int',
                    'default': 19
                },
                'gender': {
                    'label': 'Gender',
                    'type': 'radio',
                    'options': ['Male', 'Female'],
                    'default': 'Male'
                },
                'income': {
                    'label': 'Income',
                    'type': 'float',
                    'default': 50000.0
                },
                'status': {
                    'label': 'Married',
                    'type': 'checkbox',
                    'default': false
                },
                'work': {
                    'label': 'Job',
                    'type': 'select',
                    'options': ['Carpenter', 'Truck Driver', 'Porn Star'],
                    'default': 'Truck Driver'
                }
            });