diff options
author | drry | 2008-09-05 16:31:27 +0000 |
---|---|---|
committer | drry | 2008-09-05 16:31:27 +0000 |
commit | f4d47f6d977d3ab64187a9e7788711cad2971dcf (patch) | |
tree | 7d5cf1a177624bfc0334d2d79f05994bf21f2a41 | |
parent | 44e2865552a4577d13db449025323db91da58125 (diff) | |
download | vimperator-plugins-f4d47f6d977d3ab64187a9e7788711cad2971dcf.tar.bz2 |
* (whitespace changes)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@18904 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | twissr.js | 6 | ||||
-rw-r--r-- | ubiquityNeta.js | 38 |
2 files changed, 22 insertions, 22 deletions
@@ -6,9 +6,9 @@ (function(){
liberator.commands.addUserCommand(["twissr"], "Change Twitter & Wassr status",
function(arg, special){
- arg = (special ? '! ' : ' ') + arg;
- liberator.execute('twitter' + arg);
- liberator.execute('wassr' + arg);
+ arg = (special ? '! ' : ' ') + arg;
+ liberator.execute('twitter' + arg);
+ liberator.execute('wassr' + arg);
},
{ });
})();
diff --git a/ubiquityNeta.js b/ubiquityNeta.js index 4b95556..5f8f341 100644 --- a/ubiquityNeta.js +++ b/ubiquityNeta.js @@ -1,26 +1,26 @@ -// Vimperator plugin: ubiquity
+// Vimperator plugin: Ubiquity
// Maintainer: mattn <mattn.jp@gmail.com> - http://mattn.kaoriya.net
// Require: Ubiquity - https://wiki.mozilla.org/Labs/Ubiquity
// Usage:
-// :ubiquity command... - show ubiquity's command dialog.
-// :ubiquity! command... - run ubiquity's command.
+// :ubiquity command... - show Ubiquity's command dialog.
+// :ubiquity! command... - run Ubiquity's command.
(function() {
if (typeof gUbiquity === 'undefined') return;
- liberator.commands.addUserCommand(["ubiquity"], "Ubiquity",
- function(arg, special){
- var anchor = document.getElementById("content");
- if (window.location == "chrome://browser/content/browser.xul")
- anchor = anchor.selectedBrowser;
- gUbiquity.openWindow(anchor);
- gUbiquity.__textBox.value = arg||'';
- var context = gUbiquity.__makeContext();
- var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview");
- gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock);
- if (special) {
- gUbiquity.__cmdManager.execute(context);
- gUbiquity.closeWindow();
- }
- },
- { });
+ liberator.commands.addUserCommand(["ubiquity"], "Ubiquity",
+ function(arg, special){
+ var anchor = document.getElementById("content");
+ if (window.location == "chrome://browser/content/browser.xul")
+ anchor = anchor.selectedBrowser;
+ gUbiquity.openWindow(anchor);
+ gUbiquity.__textBox.value = arg||'';
+ var context = gUbiquity.__makeContext();
+ var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview");
+ gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock);
+ if (special) {
+ gUbiquity.__cmdManager.execute(context);
+ gUbiquity.closeWindow();
+ }
+ },
+ { });
})();
|