From bd51bc33877cf5cbb18e43a7c373d63c01249548 Mon Sep 17 00:00:00 2001 From: drry Date: Fri, 9 May 2008 20:26:34 +0000 Subject: * インデントを修整しました。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11315 d0d07461-0603-4401-acd4-de1884942a52 --- proxy.js | 71 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 36 insertions(+), 35 deletions(-) (limited to 'proxy.js') diff --git a/proxy.js b/proxy.js index 7661008..d99b0f1 100644 --- a/proxy.js +++ b/proxy.js @@ -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); -- cgit v1.2.3