Changeset 18904 for lang/javascript/vimperator-plugins/trunk
- Timestamp:
- 09/06/08 01:31:27 (3 months ago)
- Location:
- lang/javascript/vimperator-plugins/trunk
- Files:
-
- 2 modified
-
twissr.js (modified) (1 diff)
-
ubiquityNeta.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/twissr.js
r16909 r18904 7 7 liberator.commands.addUserCommand(["twissr"], "Change Twitter & Wassr status", 8 8 function(arg, special){ 9 arg = (special ? '! ' : ' ') + arg;10 liberator.execute('twitter' + arg);11 liberator.execute('wassr' + arg);9 arg = (special ? '! ' : ' ') + arg; 10 liberator.execute('twitter' + arg); 11 liberator.execute('wassr' + arg); 12 12 }, 13 13 { }); -
lang/javascript/vimperator-plugins/trunk/ubiquityNeta.js
r18664 r18904 1 // Vimperator plugin: ubiquity1 // Vimperator plugin: Ubiquity 2 2 // Maintainer: mattn <mattn.jp@gmail.com> - http://mattn.kaoriya.net 3 3 // Require: Ubiquity - https://wiki.mozilla.org/Labs/Ubiquity 4 4 // Usage: 5 // :ubiquity command... - show ubiquity's command dialog.6 // :ubiquity! command... - run ubiquity's command.5 // :ubiquity command... - show Ubiquity's command dialog. 6 // :ubiquity! command... - run Ubiquity's command. 7 7 8 8 (function() { 9 9 if (typeof gUbiquity === 'undefined') return; 10 liberator.commands.addUserCommand(["ubiquity"], "Ubiquity",11 function(arg, special){12 var anchor = document.getElementById("content");13 if (window.location == "chrome://browser/content/browser.xul")14 anchor = anchor.selectedBrowser;15 gUbiquity.openWindow(anchor);16 gUbiquity.__textBox.value = arg||'';17 var context = gUbiquity.__makeContext();18 var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview");19 gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock);20 if (special) {21 gUbiquity.__cmdManager.execute(context);22 gUbiquity.closeWindow();23 }24 },25 { });10 liberator.commands.addUserCommand(["ubiquity"], "Ubiquity", 11 function(arg, special){ 12 var anchor = document.getElementById("content"); 13 if (window.location == "chrome://browser/content/browser.xul") 14 anchor = anchor.selectedBrowser; 15 gUbiquity.openWindow(anchor); 16 gUbiquity.__textBox.value = arg||''; 17 var context = gUbiquity.__makeContext(); 18 var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview"); 19 gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock); 20 if (special) { 21 gUbiquity.__cmdManager.execute(context); 22 gUbiquity.closeWindow(); 23 } 24 }, 25 { }); 26 26 })();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)