diff options
author | drry | 2008-05-09 20:26:34 +0000 |
---|---|---|
committer | drry | 2008-05-09 20:26:34 +0000 |
commit | bd51bc33877cf5cbb18e43a7c373d63c01249548 (patch) | |
tree | 6f5037dba50317905e013c7f1652c41baf97a4a5 | |
parent | 52692ab4924641f7b991aec9f326a553bc4e496c (diff) | |
download | vimperator-plugins-bd51bc33877cf5cbb18e43a7c373d63c01249548.tar.bz2 |
* インデントを修整しました。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11315 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | proxy.js | 71 |
1 files changed, 36 insertions, 35 deletions
@@ -1,10 +1,10 @@ /** * ==VimperatorPlugin== * @name proxy.js - * @description proxy setting plugin + * @description proxy setting plugin * @description-ja プロクシ設定 * @minVersion 0.6pre - * @author cho45 halt feits + * @author cho45, halt feits * @version 0.6 * ==/VimperatorPlugin== * @@ -53,40 +53,41 @@ */ (function() { -if (!liberator.globalVariables.proxy_settings){ - liberator.globalVariables.proxy_settings = [ - { - conf_name: 'disable', - conf_usage: 'direct connection', - settings: [ - { - label: 'type', - param: 0 - } - ] - }, - { - conf_name: 'polipo', - conf_usage: 'use polipo cache proxy', - settings: [ - { - label: 'type', - param: 1 - }, - { - label: 'http', - param: 'localhost' - }, - { - label: 'http_port', - param: 8123 - } - ] - } - ]; -}; + if (!liberator.globalVariables.proxy_settings) { + liberator.globalVariables.proxy_settings = [ + { + conf_name: 'disable', + conf_usage: 'direct connection', + settings: [ + { + label: 'type', + param: 0 + } + ] + }, + { + conf_name: 'polipo', + conf_usage: 'use polipo cache proxy', + settings: [ + { + label: 'type', + param: 1 + }, + { + label: 'http', + param: 'localhost' + }, + { + label: 'http_port', + param: 8123 + } + ] + } + ]; + }; + var proxy_settings = liberator.globalVariables.proxy_settings; - + liberator.commands.addUserCommand(["proxy"], 'Proxy settings', function (args) { const prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); |