var INFO = xml` pekepekesamurai :exopen :exopen template_name

template_name で設定されたURLを開きます。

Example

%TITLE%を現在開いているWebページのタイトルに展開してURLを開きます。

テンプレートで設定されたURLを開きます。

Keyword

%TITLE%
現在のWebページのタイトル
%URL%
現在のWebページのURL
%SEL%
選択中の文字列
%HTMLSEL%
選択中のHTMLソース

.vimperatorrc exmaple

label
テンプレート名。コマンドの引数で指定してください。
value
OpenするURL
custom
関数か配列で指定してください。 関数の場合、return された文字列をオープンします。 配列の場合、value で指定された文字列を置換します。(条件→Array[0]、置換文字列→Array[1])
description
補完時に表示する説明文。
newtab
新規タブで開く場合は true を指定してください。
escape
URLエンコードする場合、true を指定してください。
`; liberator.plugins.exOpen = (function() { var global = liberator.globalVariables.exopen_templates; if (!global) { global = [{ label: 'vimpnightly', value: 'http://code.google.com/p/vimperator-labs/downloads/list?can=1&q=label:project-vimperator', description: 'open vimperator nightly xpi page', newtab: true }, { label: 'vimplab', value: 'http://www.vimperator.org/vimperator', description: 'open vimperator trac page', newtab: true }, { label: 'vimpscript', value: 'http://code.google.com/p/vimperator-labs/issues/list?can=2&q=label%3Aproject-vimperator+label%3Atype-plugin', description: 'open vimperator trac script page', newtab: true }, { label: 'coderepos', value: 'http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/', description: 'open coderepos vimperator-plugin page', newtab: true }, { label: 'sldr', value: 'http://reader.livedoor.com/subscribe/%URL%' }]; } function openTabOrSwitch(url) { var tabs = gBrowser.mTabs; for (let i=0, l=tabs.length; i