Changeset 16715

Show
Ignore:
Timestamp:
07/28/08 00:00:41 (6 months ago)
Author:
teramako
Message:

Add "userscriptmanager" to dialog command

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/gmperator.js

    r15909 r16715  
    55 * @author         teramako teramako@gmail.com 
    66 * @namespace      http://d.hatena.ne.jp/teramako/ 
    7  * @version        0.4a 
     7 * @version        0.5b 
    88 * ==/VimperatorPlugin== 
    99 * 
     
    5050 * autocmd GMActiveScript scriptName\.user\.js$ :echo "scriptName is executing" 
    5151 *    when any URL and scriptName.user.js is executing 
     52 * 
     53 * --------------------------- 
     54 * Dialog 
     55 * --------------------------- 
     56 * :dialog userscriptmanager -> open Greasemonkey UserScript Manager 
    5257 * 
    5358 * }}} 
     
    8893    return; 
    8994} 
    90 if(!liberator.plugins) liberator.plugins = {}; 
    91  
    9295 
    9396liberator.plugins.gmperator = (function(){ //{{{ 
     
    196199    getBrowser().mTabContainer.addEventListener('TabClose',updateGmContainerList,false); 
    197200    getBrowser().mTabBox.addEventListener('TabSelect',dispatchGMTabSelect,false); 
     201     
     202    liberator.config.autocommands.push(["GMInjectedScript","Triggered when UserScript is injected"]); 
     203    liberator.config.autocommands.push(["GMActiveScript","Triggered when location is changed and injected UserScripts are exist"]); 
     204    liberator.config.dialogs.push(["userscriptmanager", "Greasemonkey Manager", function(){GM_openUserScriptManager();}]); 
    198205    // }}} 
    199206    return manager;