diff options
author | teramako | 2008-07-27 15:00:41 +0000 |
---|---|---|
committer | teramako | 2008-07-27 15:00:41 +0000 |
commit | 681fda51b27767348949c06a99208f43e665563e (patch) | |
tree | a671c825606fbea2e5b175ff7b30c657b9bd0cd1 /gmperator.js | |
parent | 44c1b5ee408c55e4dfdc64ff2a5b10c6e5c91ab9 (diff) | |
download | vimperator-plugins-681fda51b27767348949c06a99208f43e665563e.tar.bz2 |
Add "userscriptmanager" to dialog command
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@16715 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'gmperator.js')
-rw-r--r-- | gmperator.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gmperator.js b/gmperator.js index 4011621..404f9d8 100644 --- a/gmperator.js +++ b/gmperator.js @@ -4,7 +4,7 @@ * @description Vimperator plugin for Greasemonkey * @author teramako teramako@gmail.com * @namespace http://d.hatena.ne.jp/teramako/ - * @version 0.4a + * @version 0.5b * ==/VimperatorPlugin== * * --------------------------- @@ -50,6 +50,11 @@ * 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: @@ -87,8 +92,6 @@ if (!Cc[gmID]) { log('Greasemonkey is not installed'); return; } -if(!liberator.plugins) liberator.plugins = {}; - liberator.plugins.gmperator = (function(){ //{{{ // ----------------------- @@ -195,6 +198,10 @@ liberator.plugins.gmperator = (function(){ //{{{ } getBrowser().mTabContainer.addEventListener('TabClose',updateGmContainerList,false); getBrowser().mTabBox.addEventListener('TabSelect',dispatchGMTabSelect,false); + + liberator.config.autocommands.push(["GMInjectedScript","Triggered when UserScript is injected"]); + liberator.config.autocommands.push(["GMActiveScript","Triggered when location is changed and injected UserScripts are exist"]); + liberator.config.dialogs.push(["userscriptmanager", "Greasemonkey Manager", function(){GM_openUserScriptManager();}]); // }}} return manager; })(); //}}} |