From a5ef14eeb9a2ce3cdcfb50d3486a7340e735bddf Mon Sep 17 00:00:00 2001 From: teramako Date: Fri, 19 Dec 2008 15:00:14 +0000 Subject: plugiinManager対応 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27089 d0d07461-0603-4401-acd4-de1884942a52 --- gmperator.js | 195 +++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 108 insertions(+), 87 deletions(-) (limited to 'gmperator.js') diff --git a/gmperator.js b/gmperator.js index c0bd165..4856ef7 100644 --- a/gmperator.js +++ b/gmperator.js @@ -1,90 +1,111 @@ -/** - * ==VimperatorPlugin== - * @name gmperator - * @description Vimperator plugin for Greasemonkey - * @author teramako teramako@gmail.com - * @namespace http://d.hatena.ne.jp/teramako/ - * @version 0.6c - * ==/VimperatorPlugin== - * - * --------------------------- - * Usage: - * --------------------------- - * {{{ - * - * :gmli[st] {filter} -> show user scripts matches {filter} - * :gmli[st]! -> show all user scripts - * :gmli[st] full -> same as :gmli[st]! - * - * :gmlo[ad] {name|filename} -> load the user script to the current page - * but, don't dispatch load event - * so maybe you should edit the scripts before load - * :gmlo[ad]! {name|filename} -> force load the user script - * - * :gmset! -> toggle enable/disable Greasemonkey - * :gmset! {filename} -> toogle enable/disable the script - * :gmset {filename} {options} - * {options}: - * -n[ame] {value} -> change name to {value} - * -i[nclude] {expr[,expr,...]} -> change includes to expr list ("," demiliter) - * -e[xclude] {expr[,expr,...]} -> change excludes to expr list ("," demiliter) - * - * :gmcommand {command name} -> run Greasemonkey Command - * - * Caution: - * The change is permanent, not only the session. - * And cannot get back. - * - * e.g.) - * :gmset! {filename} -n fooScriptName -i http://*,https://* -e http://example.com/* - * toggle enable or disable, - * name to "fooScriptName", - * includes to "http://*" and "https://*", - * and excludes to "http://example.com/*" - * - * --------------------------- - * Autocommand - * --------------------------- - * Available events: - * 'GMInjectedScript' -> when open either foreground or background - * 'GMActiveScript' -> when TabSelect or open foreground - * e.g.) - * autocmd GMActiveScript scriptName\.user\.js$ :echo "scriptName is executing" - * when any URL and scriptName.user.js is executing - * - * --------------------------- - * Dialog - * --------------------------- - * :dialog userscriptmanager -> open Greasemonkey UserScript Manager - * - * }}} - * --------------------------- - * For plugin developer: - * --------------------------- - * {{{ - * - * you can access to the sandbox of Greasemonkey !!! - * - * liberator.plugins.gmperator => ( - * allItem : return object of key : {panalID}, - * value : {GmContainer} - * {panelID} => @see gBrowser.mTags[].linkedPanel - * currentPanel - * currentContainer : return the current {GmContainer} object - * currentSandbox : return the current sandbox object - * gmScripts : return array of {userScripts} - * {userScripts} => ( - * filename : {String} - * name : {String} - * namespace : {String} - * description: {String} - * enabled : {Boolean} - * includes : {String[]} - * encludes : {String[]} - * ) - * ) - * }}} - */ +var PLUGIN_INFO = + +{NAME} +Vimperator plugin for Greasemonkey +teramako +0.6c +2.0pre +2.0pre + (: + - filename : {String} + - name : {String} + - namespace : {String} + - description: {String} + - enabled : {Boolean} + - includes : {String[]} + - encludes : {String[]} + ) + +]]> +; + (function(){ const Cc = Components.classes; -- cgit v1.2.3