aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2013-04-06 17:34:25 +0900
committeranekos2013-04-06 17:34:25 +0900
commitd26934599d3df506f21e1ead94483d4e351b703c (patch)
tree7491fd55b918b97964f092571a8dfb8ae03ba64c
parent05896438474f55d3a569b983c46457a602cff0f6 (diff)
downloadvimperator-plugins-d26934599d3df506f21e1ead94483d4e351b703c.tar.bz2
ミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョ
-rw-r--r--PMWriter.js22
-rw-r--r--_libly.js4
-rw-r--r--access_hatena.js4
-rw-r--r--account_switcher.js6
-rw-r--r--adddialog.js4
-rw-r--r--alert.js8
-rw-r--r--alias.js9
-rw-r--r--amazon_simple_uri.js4
-rw-r--r--amebanow.js8
-rw-r--r--appendAnchor.js4
-rw-r--r--appinfo.js4
-rw-r--r--applauncher.js4
-rw-r--r--asdfghjkl.js4
-rw-r--r--atnd.js5
-rw-r--r--atodeyomu.js4
-rw-r--r--auto-bookmark.js17
-rw-r--r--auto-focus-frame.js4
-rw-r--r--auto-wildoptions.js4
-rw-r--r--auto_detect_link.js4
-rw-r--r--auto_reload.js4
-rw-r--r--auto_source.js8
-rw-r--r--auto_word_select_mode.js4
-rw-r--r--autopagerize_controll.js4
-rw-r--r--autoproxychanger.js4
-rw-r--r--bijin_clock.js8
-rw-r--r--bitly.js4
-rw-r--r--browser_object.js4
-rw-r--r--buffer-multiple-hints.js5
-rw-r--r--caret-hint.js5
-rw-r--r--chaika.js5
-rw-r--r--clear_privacy_data.js4
-rw-r--r--clock.js4
-rw-r--r--commandBookmarklet.js4
-rw-r--r--command_menu.js4
-rw-r--r--cookieManager.js6
-rw-r--r--cpan-search.js4
-rw-r--r--delicious_search.js12
-rw-r--r--echopy.js4
-rw-r--r--edit-vimperator-files.js5
-rw-r--r--ego_counter.js2
-rw-r--r--epub-reader.js5
-rw-r--r--erection.js13
-rw-r--r--every.js4
-rw-r--r--extension-manager.js9
-rw-r--r--facebook.js5
-rw-r--r--fetchyoutube.js2
-rw-r--r--forcefocuscontent.js4
-rw-r--r--foxage2ch.js5
-rw-r--r--foxytunes.js4
-rw-r--r--function-template.js5
-rw-r--r--garbage_finder.js6
-rw-r--r--gmail-commando.js5
-rw-r--r--gmperator.js6
-rw-r--r--google-plus-commando.js15
-rw-r--r--google-search.js4
-rw-r--r--google-tasks.js10
-rw-r--r--googledocs.js4
-rw-r--r--googlekanji.js4
-rw-r--r--haiku.js16
-rw-r--r--happy_hacking_vimperator.js4
-rw-r--r--hash.js4
-rw-r--r--hateDAopener.js8
-rw-r--r--hatebuWatchDog.js4
-rw-r--r--hatena-bookmark-search.js16
-rw-r--r--hatenaStar.js4
-rw-r--r--hatena_fotolife.js4
-rw-r--r--hatena_highlight.js4
-rw-r--r--hint-tombloo.js4
-rw-r--r--hints-for-embedded.js5
-rw-r--r--hints-yank-paste.js4
-rw-r--r--history-search-backward.js4
-rw-r--r--imageextender.js4
-rw-r--r--inspector.js4
-rw-r--r--jquery-loader.js9
-rw-r--r--ldc-completer.js5
-rw-r--r--ldrize_cooperation_fetch_flv.js6
-rw-r--r--literal-bmark.js4
-rw-r--r--lo.js11
-rw-r--r--localkeymode.js4
-rw-r--r--loginManager.js4
-rw-r--r--lolipo-ojisan.js13
-rw-r--r--longcat.js13
-rw-r--r--maine_coon.js4
-rw-r--r--marker_reader.js4
-rw-r--r--matanico.js4
-rw-r--r--memo.js6
-rw-r--r--microUpdate.js8
-rw-r--r--migemized_find.js5
-rw-r--r--migemo-find.js4
-rw-r--r--mixiecho.js4
-rw-r--r--mkcolor.js4
-rw-r--r--morse.js8
-rw-r--r--mouse_gestures.js4
-rw-r--r--mpd-currentsong.js9
-rw-r--r--multi-exec.js4
-rw-r--r--my-style.js17
-rw-r--r--namakubi.js8
-rw-r--r--newtab.js5
-rw-r--r--nextlink.js4
-rw-r--r--nicolist.js4
-rw-r--r--nnp_cooperation.js4
-rw-r--r--notifier.js4
-rw-r--r--nume.js5
-rw-r--r--open-frame.js9
-rw-r--r--opener.js9
-rw-r--r--option-selector.js4
-rw-r--r--options-migrate-user-pref.js4
-rw-r--r--pino.js4
-rw-r--r--pluginManager.js48
-rw-r--r--plugin_loader.js4
-rw-r--r--prevent_focus_ietab.js4
-rw-r--r--property-panel.js5
-rw-r--r--pypi.js4
-rw-r--r--readcatlater.js4
-rw-r--r--readitlater.js4
-rw-r--r--refcontrol.js4
-rw-r--r--refe.js5
-rw-r--r--relatedBlogSearch.js4
-rw-r--r--removetabs.js4
-rw-r--r--reporter.js4
-rw-r--r--resizable_textarea.js4
-rw-r--r--retweet.js4
-rw-r--r--reveal-ie-ctrl-a-images.js4
-rw-r--r--sbmcommentsviewer.js20
-rw-r--r--scalapi.js4
-rw-r--r--scenario-actor.js4
-rw-r--r--session-manager.js9
-rw-r--r--slideshare.js9
-rw-r--r--spatial-navigation.js9
-rw-r--r--statstat.js8
-rw-r--r--statusbar_panel.js6
-rw-r--r--statusline-toolbar.js4
-rw-r--r--stella.js8
-rw-r--r--stylish.js4
-rw-r--r--subscldr.js4
-rw-r--r--tab-history.js4
-rw-r--r--tabmixplus.js4
-rw-r--r--tabsort.js4
-rw-r--r--tada.js4
-rw-r--r--takahashiPresentation.js4
-rw-r--r--tinymenu.js4
-rw-r--r--tinyurl.js4
-rw-r--r--toggler.js2
-rw-r--r--tombloo.js4
-rw-r--r--translaten.js4
-rw-r--r--twopen.js4
-rw-r--r--uaSwitchLite.js4
-rw-r--r--umihara.js4
-rw-r--r--unicode.js4
-rw-r--r--usi.js9
-rw-r--r--uuid.js4
-rw-r--r--video-controller.js5
-rw-r--r--vimp_to_android_phone.js4
-rw-r--r--wassr.js24
-rw-r--r--win-mouse.js7
-rw-r--r--xpath_hint.js4
-rw-r--r--yetmappings.js4
-rw-r--r--zip-de-download.js8
-rw-r--r--zoom-em-all.js9
-rw-r--r--跳.js5
160 files changed, 469 insertions, 507 deletions
diff --git a/PMWriter.js b/PMWriter.js
index a4fc95c..aa3099a 100644
--- a/PMWriter.js
+++ b/PMWriter.js
@@ -81,13 +81,13 @@
}
function concatXML (xmls) {
- let result = <></>;
+ let result = ``;
xmls.forEach(function (xml) result += xml);
return result;
}
function langList (info, name) {
- let result = <></>;
+ let result = ``;
let i = info.length();
while (i-- > 0) {
if (info[i].@lang.toString()) {
@@ -124,7 +124,7 @@
if (!tag)
tag = 'div';
- let result = <></>;
+ let result = ``;
for (let i = 0, l = info.length(); i < l; i++) {
let it = info[i];
@@ -146,8 +146,8 @@
};
let files = io.File(pluginDirPath).readDirectory();
- let indexHtml = <></>;
- let allHtml = <></>;
+ let indexHtml = ``;
+ let allHtml = ``;
let pminfos = [];
files.forEach(function (file) {
@@ -236,7 +236,7 @@
true,
function (it) (it.toString()) || '---')
- let versionsBody = <></>;
+ let versionsBody = ``;
VERSIONS.forEach(function (ver) {
let url = CodeReposBranch + ver + '/' + pluginFilename;
@@ -245,17 +245,17 @@
file.append(ver);
file.append(pluginFilename);
versionsBody +=
- <>
+ `
<dt>{'for ' + ver}</dt>
- {file.exists() ? <a href={url} class="coderepos" target="_blank">{url}</a> : <>not supported</>}
- </>;
+ {file.exists() ? <a href={url} class="coderepos" target="_blank">{url}</a> : `not supported`}
+ `;
});
versionsBody +=
- <>
+ `
<dt>{'for Nightly'}</dt>
<a href={CodeRepos + pluginFilename} class="coderepos" target="_blank">{CodeRepos + pluginFilename}</a>
- </>;
+ `;
// <dt>Vimperator version</dt>
diff --git a/_libly.js b/_libly.js
index 33b97bd..8c6f245 100644
--- a/_libly.js
+++ b/_libly.js
@@ -7,7 +7,7 @@
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
/*
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>libly(filename _libly.js)</name>
<description>Vimperator plugins library?</description>
@@ -190,7 +190,7 @@ clearCache:
wedata 読込み成功したら、強制的にキャッシュと置き換えるの作って!
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
*/
//}}}
//if (!liberator.plugins.libly) {
diff --git a/access_hatena.js b/access_hatena.js
index b291b02..a8945e0 100644
--- a/access_hatena.js
+++ b/access_hatena.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Access to Hatena Sevices quickly.</description>
@@ -46,7 +46,7 @@ map ; :accesshatena
# 最後にスペースを入れておくと直ぐにホストの入力から始められます.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
var useWedata;
var ignoreIds;
diff --git a/account_switcher.js b/account_switcher.js
index 4ad1caa..5678759 100644
--- a/account_switcher.js
+++ b/account_switcher.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Switch account easily.</description>
@@ -50,7 +50,7 @@ liberator.accountSwitcherOpenNewTab = 1;
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
var services = [];
var accounts = [];
@@ -180,7 +180,7 @@ liberator.accountSwitcherOpenNewTab = 1;
if (value.indexOf('=') > 0) {
params.push(value);
} else {
- res.responseText.match(new RegExp('<([^<>]*?name=\"' + value + '\"[^<>]*?)>'));
+ res.responseText.match(new RegExp('<([^`]*?name=\"' + value + '\"[^`]*?)>'));
RegExp.$1.match(/value=\"([\w-]+)\"/);
params.push(value + '=' + encodeURIComponent(RegExp.$1));
}
diff --git a/adddialog.js b/adddialog.js
index 6911e47..0bc3151 100644
--- a/adddialog.js
+++ b/adddialog.js
@@ -33,7 +33,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
}}} */
-let PLUGIN_INFO = // {{{
+let PLUGIN_INFO = xml` // {{{
<VimperatorPlugin>
<name>{NAME}</name>
<description>Add/Delete a :dialog argument.</description>
@@ -62,7 +62,7 @@ let PLUGIN_INFO = // {{{
:deldialog gmmanage
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
/// }}}
liberator.plugins.adddialog = (function(args) { // {{{
diff --git a/alert.js b/alert.js
index a4e05d5..611a8ae 100644
--- a/alert.js
+++ b/alert.js
@@ -7,7 +7,7 @@
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Alert</name>
<name lang="ja">アラート</name>
@@ -48,7 +48,7 @@ let PLUGIN_INFO =
JavaScriptでSLを走らせる「SL.JS」を作りました ::: creazy photograph
http://creazy.net/2008/02/sl_js.html
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
@@ -388,14 +388,14 @@ let PLUGIN_INFO =
let sleep = parseFloat(arg || 3) * 1000;
let sz = innerWidth / msg.length / 1.5;
liberator.echo(
- <div style="background: white; color: black;">
+ xml`<div style="background: white; color: black;">
<table>
<tr>
<td><img src={gunsou}/></td>
<td style={"font-size: " + sz + "px; white-space: nowrap;"}>{msg}</td>
</tr>
</table>
- </div>
+ </div>`
);
setTimeout(next, sleep);
},
diff --git a/alias.js b/alias.js
index 2baca1f..7a09ce2 100644
--- a/alias.js
+++ b/alias.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>alias</name>
<name lang="ja">alias</name>
@@ -54,11 +54,10 @@ let PLUGIN_INFO =
:alias <new-command-name> <old-command-name>:
コマンド <old-command-name> に <new-command-name> という別名をつけます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="alias" version="1.0.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/alias.js"
summary="Define the alias for a command."
@@ -107,7 +106,7 @@ let INFO =
:lazy alias newName oldCommandName
</ex></code>
</plugin>
-</>;
+`;
// }}}
diff --git a/amazon_simple_uri.js b/amazon_simple_uri.js
index 34b4e6e..e21c79a 100644
--- a/amazon_simple_uri.js
+++ b/amazon_simple_uri.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>amazon_simple_uri</name>
<description>Copy Amazon Simple URI.</description>
@@ -19,7 +19,7 @@ var PLUGIN_INFO =
と設定することにより、Amazon アソシエイトID(上の例ではhogehoge-22)をURLに追加します。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
//
(function()
diff --git a/amebanow.js b/amebanow.js
index 3f06aa1..fd2b7be 100644
--- a/amebanow.js
+++ b/amebanow.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>AmebaNau</name>
<name lang="ja">Amebaなう</name>
@@ -55,10 +55,10 @@ let PLUGIN_INFO =
let g:amebanow_multipost = "twitter|wassr"
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
+let INFO = xml`
<plugin name="AmebaNow" version="1.0.4"
href="http://github.com/vimpr/vimperator-plugins/blob/master/amebanow.js"
summary="AmebaNau"
@@ -77,7 +77,7 @@ let INFO =
</p>
</description>
</item>
-</plugin>;
+</plugin>`;
// }}}
diff --git a/appendAnchor.js b/appendAnchor.js
index 8ca02a2..d5f7935 100644
--- a/appendAnchor.js
+++ b/appendAnchor.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>appendAnchor</name>
<description>append anchors to texts look like url.</description>
@@ -27,7 +27,7 @@ let PLUGIN_INFO =
g:auto_append_anchor_once:
最初の一回だけ。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
diff --git a/appinfo.js b/appinfo.js
index c746807..5e59627 100644
--- a/appinfo.js
+++ b/appinfo.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>show application information</description>
@@ -15,7 +15,7 @@ appinfo [information]:
echo and copy mozilla information
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/applauncher.js b/applauncher.js
index 31f62c9..146a46b 100644
--- a/applauncher.js
+++ b/applauncher.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>AppLauncher</name>
<name lang='ja'>アプリケーションランチャー</name>
@@ -30,7 +30,7 @@ var PLUGIN_INFO =
引数を複数指定する場合は配列形式で指定してください。
applauncher_charset を指定すると、渡される文字列が指定の文字セットに変換されます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.AppLauncher = (function(){
const UConv = Cc['@mozilla.org/intl/scriptableunicodeconverter'].getService(Ci.nsIScriptableUnicodeConverter);
diff --git a/asdfghjkl.js b/asdfghjkl.js
index 361c33c..1f48516 100644
--- a/asdfghjkl.js
+++ b/asdfghjkl.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>asdfghjkl;</name>
<description>Inputting numbers by asdfghjkl; keys in hint mode.</description>
@@ -85,7 +85,7 @@ let PLUGIN_INFO =
== Link ==
http://d.hatena.ne.jp/nokturnalmortum/20081021#1224543467
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/atnd.js b/atnd.js
index 86d802f..3e8ef5c 100644
--- a/atnd.js
+++ b/atnd.js
@@ -1,6 +1,5 @@
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="atnd" version="0.1.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/atnd.js"
summary="Atndのイベント検索"
@@ -20,7 +19,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/atodeyomu.js b/atodeyomu.js
index 012ebda..7cb5480 100644
--- a/atodeyomu.js
+++ b/atodeyomu.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>atodeyomu</description>
@@ -11,7 +11,7 @@ var PLUGIN_INFO =
<license>public domain</license>
<detail><![CDATA[
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function(){
diff --git a/auto-bookmark.js b/auto-bookmark.js
index a3ed359..7da83ef 100644
--- a/auto-bookmark.js
+++ b/auto-bookmark.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="AutoBookmark" version="1.3.1"
href="http://vimpr.github.com/"
summary="Auto update bookmark"
@@ -65,7 +64,7 @@ let INFO =
<description><p></p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -356,10 +355,10 @@ let INFO =
template.map(
bookmarks,
function ([name, data]) {
- return <>
+ return `
<dt style="font-weight: bold">{name}</dt>
<dd>{data.current.title} <a href={data.current.URL}> {data.current.URL} </a> ({def(data, 'scroll.x', '?')}, {def(data, 'scroll.y', '?')}) ({def(data, 'pages.length', '?')})</dd>
- </>;
+ `;
}
)
}</dl>
@@ -447,7 +446,7 @@ let INFO =
let name = args.literalArg;
let data = bookmarks.get(name);
if (data) {
- liberator.echo(<>
+ liberator.echo(`
<dl>
<dt>Name</dt>
<dd>{name}</dd>
@@ -464,7 +463,7 @@ let INFO =
template.map(data.pages, function (it) (<li>{it.URL}</li>))
}</dd>
</dl>
- </>);
+ `);
} else {
liberator.echoerr('Bookmark not found: ' + name);
}
@@ -548,7 +547,7 @@ let INFO =
title = name;
if (bookmarks.get(name)) {
- error.data = String(<>"{name}" already exists</>);
+ error.data = String(`"{name}" already exists`);
return false;
}
@@ -559,7 +558,7 @@ let INFO =
updateCurrent(data, url, title);
if (!initializeTab(tab, data)) {
- error.data = String(<>This tab is already started</>);
+ error.data = String(`This tab is already started`);
return false;
}
diff --git a/auto-focus-frame.js b/auto-focus-frame.js
index 25f3445..18349b1 100644
--- a/auto-focus-frame.js
+++ b/auto-focus-frame.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Auto focus frame</name>
<description>Automatically focus to largest frame.</description>
@@ -54,7 +54,7 @@ let PLUGIN_INFO =
インストールするだけ
一番面積の大きいフレームをフォーカスします
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/auto-wildoptions.js b/auto-wildoptions.js
index 96dbab1..0e92936 100644
--- a/auto-wildoptions.js
+++ b/auto-wildoptions.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Auto wildoptions</name>
<description>Automatically toggle wildoptions=auto</description>
@@ -51,7 +51,7 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
----
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/auto_detect_link.js b/auto_detect_link.js
index 4f11cc8..5be989e 100644
--- a/auto_detect_link.js
+++ b/auto_detect_link.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Auto Detect Link</name>
<description>Find (next|previous) link, and jump.</description>
@@ -78,7 +78,7 @@ var PLUGIN_INFO =
liberator.plugins.autoDetectLink.detect(false, {useBackHistory: false});
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/auto_reload.js b/auto_reload.js
index 64dcf69..86198bf 100644
--- a/auto_reload.js
+++ b/auto_reload.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Auto Reload</name>
<name lang="ja">自動リロード</name>
@@ -51,7 +51,7 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
制作中
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/auto_source.js b/auto_source.js
index 48dffb8..2054808 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Auto Source</name>
<description>Sourcing automatically when the specified file is modified.</description>
@@ -65,8 +65,8 @@ let PLUGIN_INFO =
- :aso! taro.js
- :autoso[urce]! taro.js
]]></detail>
-</VimperatorPlugin>;
-let INFO =
+</VimperatorPlugin>`;
+let INFO = xml`
<plugin name="Auto Source" version="1.6.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/auto_source.js"
summary="Sourcing automatically when the specified file is modified."
@@ -95,7 +95,7 @@ let INFO =
</dl>
</description>
</item>
-</plugin>;
+</plugin>`;
// }}}
// Links:
diff --git a/auto_word_select_mode.js b/auto_word_select_mode.js
index e32adea..aa50b90 100644
--- a/auto_word_select_mode.js
+++ b/auto_word_select_mode.js
@@ -31,7 +31,7 @@
// }}}
// PLUGIN INFO: {{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Add auto word select mode.</description>
@@ -143,7 +143,7 @@ var PLUGIN_INFO =
- http://d.zeromemory.info/2008/11/20/vimperator-multi_requester.html
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function(){
diff --git a/autopagerize_controll.js b/autopagerize_controll.js
index 51b8719..eb73ab7 100644
--- a/autopagerize_controll.js
+++ b/autopagerize_controll.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>controls autopagerize</description>
@@ -24,7 +24,7 @@ prevpage:
== TODO ==
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/autoproxychanger.js b/autoproxychanger.js
index 797b7bb..397176e 100644
--- a/autoproxychanger.js
+++ b/autoproxychanger.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>autoproxychanger</name>
<description>setting proxy</description>
@@ -50,7 +50,7 @@ var PLUGIN_INFO =
EOM
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.AutoProxyChanger = (function() {
var gVar = liberator.globalVariables;
diff --git a/bijin_clock.js b/bijin_clock.js
index c6a068a..dd7e8a0 100644
--- a/bijin_clock.js
+++ b/bijin_clock.js
@@ -8,12 +8,12 @@
* == Stop ==
* js plugins.bijin_clock.stop()
*/
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Bijin Clock - http://www.bijint.com</description>
<version>0.1</version>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.bijin_clock = (function(){
const BASE_URL = 'http://www.bijint.com/jp/img/photo/';
@@ -34,7 +34,7 @@ function showBijinClock(){
let image_src = BASE_URL + getTimeString(date) + ".jpg";
liberator.echomsg(date.toLocaleString(), 0);
openDialog('data:application/vnd.mozilla.xul+xml;charset=utf-8,' +
- <><?xml-stylesheet type="text/css" href="chrome://global/skin/"?>
+ `<?xml-stylesheet type="text/css" href="chrome://global/skin/"?>
<?xml-stylesheet type="text/css" href="chrome://browser/skin/browser.css"?>
<window title={TITLE}
windowtype="alert:clock"
@@ -74,7 +74,7 @@ function showBijinClock(){
</hbox>
<image id="img" src={image_src} onload="init()" onerror="window.close()"/>
</vbox>
- </window></>.toXMLString(),
+ </window>`.toXMLString(),
TITLE,
'chrome,dialog=yes,titlebar=no,popup=yes');
}
diff --git a/bitly.js b/bitly.js
index 970376f..5d4af2d 100644
--- a/bitly.js
+++ b/bitly.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>bit.ly</name>
<description>Get short alias by bit.ly and j.mp</description>
@@ -53,7 +53,7 @@ let PLUGIN_INFO =
== Require ==
bit.ly API Key
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
diff --git a/browser_object.js b/browser_object.js
index dfdc583..badeba4 100644
--- a/browser_object.js
+++ b/browser_object.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Map behave like text-object</description>
@@ -52,7 +52,7 @@ let PLUGIN_INFO =
t:
Tabs
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// Vimperator plugin: 'Map behave like text-object'
diff --git a/buffer-multiple-hints.js b/buffer-multiple-hints.js
index 076a4a5..d15fabd 100644
--- a/buffer-multiple-hints.js
+++ b/buffer-multiple-hints.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="BufferMultipeHints" version="1.0.0"
href="http://vimpr.github.com/"
summary="Open multiple hints in tabs (;F) at the same time."
@@ -57,7 +56,7 @@ let INFO =
<require type="plugin">_libly.js</require>
<p>This plugin requires _libly.js.</p>
</plugin>
-</>;
+`;
// }}}
diff --git a/caret-hint.js b/caret-hint.js
index 60c6ec0..ea9ebbe 100644
--- a/caret-hint.js
+++ b/caret-hint.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="Caret Hint" version="1.4.0"
href="http://vimpr.github.com/"
summary="Move caret position by hint"
@@ -161,7 +160,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
/* _\|/_
diff --git a/chaika.js b/chaika.js
index 1ad70cc..5f965db 100644
--- a/chaika.js
+++ b/chaika.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="Chaika-Controller" version="1.0.0"
href="http://vimpr.github.com/"
summary="for Chika"
@@ -59,7 +58,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/clear_privacy_data.js b/clear_privacy_data.js
index d94ca45..6321907 100644
--- a/clear_privacy_data.js
+++ b/clear_privacy_data.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>clear privacy data</description>
@@ -48,7 +48,7 @@ var PLUGIN_INFO =
で 1m2d3h は 32日と3時間 という意味になり、現在から32日と3時間前までのデータを削除します。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.privacySanitizer = (function(){
var isFx31 = (Application.version.substring(0, 3) == "3.1")
diff --git a/clock.js b/clock.js
index f1dd328..9f0a265 100644
--- a/clock.js
+++ b/clock.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>clock</description>
@@ -94,7 +94,7 @@ let clock_format='(%t %d)'
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
( function () {
diff --git a/commandBookmarklet.js b/commandBookmarklet.js
index 811691c..af3d837 100644
--- a/commandBookmarklet.js
+++ b/commandBookmarklet.js
@@ -5,7 +5,7 @@
* @version 0.6.4
*/
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>convert bookmarklets to commands</description>
@@ -60,7 +60,7 @@ let PLUGIN_INFO =
この問題を避けるためにブックマークレットのタイトルを ASCII 文字のみに書き換えることをおすすめします。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
( function () {
diff --git a/command_menu.js b/command_menu.js
index ef00cb1..417cfc8 100644
--- a/command_menu.js
+++ b/command_menu.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Command Menu</name>
<description>Execute main-menu and tool-bar by ex-command.</description>
@@ -65,7 +65,7 @@ let PLUGIN_INFO =
== Requires ==
XUL/Migemo アドオン
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// TODO ==
diff --git a/cookieManager.js b/cookieManager.js
index f1c0cb9..21db32b 100644
--- a/cookieManager.js
+++ b/cookieManager.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Manage Cookies (list, remove, add/remove permission)</description>
@@ -40,7 +40,7 @@ Cookie の管理をするプラグイン
補完機能を存分にお楽しみください :)
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.cookieManager = (function(){
@@ -135,7 +135,7 @@ commands.addUserCommand(["cookiem[anager]"], "Cookie Management",
if (!host) return;
switch (args[0]){
case "list":
- let xml = <></>;
+ let xml = ``;
let tree = cManager.stored.getTree(host);
for (let name in tree){
xml += template.table(name, [[c.name, c.value] for each(c in tree[name])]);
diff --git a/cpan-search.js b/cpan-search.js
index 9cb6fd3..bef3ff5 100644
--- a/cpan-search.js
+++ b/cpan-search.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>CPAN search</description>
@@ -16,7 +16,7 @@ var PLUGIN_INFO =
WebService::Hatena をマッチさせたいなら Web::Ha[tab] などで補完できると思います。
:cpan! で bang をつけると別のタブで開きます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
var p = function(arg) {
diff --git a/delicious_search.js b/delicious_search.js
index fb5d2c9..996f5ea 100644
--- a/delicious_search.js
+++ b/delicious_search.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>search DeliciousBookmark and that completer</description>
@@ -40,7 +40,7 @@ set go-=D
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.delicious = (function(){
@@ -185,11 +185,11 @@ function templateDescription(item){
}
function templateTitleAndIcon(item){
let simpleURL = item.text.replace(/^https?:\/\//, '');
- return <>
- <span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : <></>}</span><span class="td-strut"/>{item.name}<a href={item.text} highlight="simpleURL">
+ return `
+ <span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : ``}</span><span class="td-strut"/>{item.name}<a href={item.text} highlight="simpleURL">
<span class="extra-info">{simpleURL}</span>
</a>
- </>;
+ `;
}
commands.addUserCommand(["delicious[search]","ds[earch]"], "Delicious Bookmark Search",
@@ -201,7 +201,7 @@ commands.addUserCommand(["delicious[search]","ds[earch]"], "Delicious Bookmark S
let list = bookmarkSearch(args["-tags"], args["-query"]);
let xml = template.tabular(["Title","Tags and Note"], [], list.map(function(item){
return [
- <><img src={item.icon}/><a highlight="URL" href={item.url}>{item.name}</a></>,
+ `<img src={item.icon}/><a highlight="URL" href={item.url}>{item.name}</a>`,
"[" + item.tags.join(",") + "] " + item.note
];
}));
diff --git a/echopy.js b/echopy.js
index 3db9aba..8fcf614 100644
--- a/echopy.js
+++ b/echopy.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<name lang="ja">{NAME}</name>
@@ -62,7 +62,7 @@ let PLUGIN_INFO =
== Link ==
http://d.hatena.ne.jp/nokturnalmortum/20081111#1226414487
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/edit-vimperator-files.js b/edit-vimperator-files.js
index 690ce54..e6cc6cb 100644
--- a/edit-vimperator-files.js
+++ b/edit-vimperator-files.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="EditVimperatorFile" version="1.2.3"
href="http://github.com/vimpr/vimperator-plugins/blob/master/edit-vimperator-files.js"
summary="Open vimperator files with text-editor."
@@ -65,7 +64,7 @@ let INFO =
<spec>:edit <a>file</a></spec>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/ego_counter.js b/ego_counter.js
index 66a3e03..a37786c 100644
--- a/ego_counter.js
+++ b/ego_counter.js
@@ -16,7 +16,7 @@
let update = function(color) {
myHatebu.setAttribute(
'src',
- <>http://b.hatena.ne.jp/bc/{color}/{MY_SITE}/</>.toSource()
+ `http://b.hatena.ne.jp/bc/{color}/{MY_SITE}/`.toSource()
);
};
diff --git a/epub-reader.js b/epub-reader.js
index 394c521..2976c05 100644
--- a/epub-reader.js
+++ b/epub-reader.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="ePub Reader" version="1.1.1"
href="http://vimpr.github.com/"
summary="for ePub Reader addon"
@@ -102,7 +101,7 @@ let INFO =
一つのアクションに複数のマッピングをしたいときは、スペースで区切ります。
</p>
</plugin>
-</>;
+`;
// }}}
diff --git a/erection.js b/erection.js
index 303ac8d..23dcd3e 100644
--- a/erection.js
+++ b/erection.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="erection" version="1.1.1"
href="http://vimpr.github.com/"
summary="Show the Erection."
@@ -75,7 +74,7 @@ let INFO =
<description><p>エレクチオンテキストと画像を表示します。</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -218,7 +217,7 @@ let INFO =
['c[opy]'],
'Copy text',
makeErectionCommand(function (e) {
- util.copyToClipboard(String(<>{e.text} - {e.by} {e.from} {e.imageURL}</>));
+ util.copyToClipboard(String(`{e.text} - {e.by} {e.from} {e.imageURL}`));
}),
subOption
),
@@ -226,13 +225,13 @@ let INFO =
['s[how]'],
'Show text and image',
makeErectionCommand(function (e) {
- liberator.echo(<>
+ liberator.echo(`
<div style="height: 800px">
<h1>{e.text}</h1>
<img src={e.imageURL} />
<span>{e.by}</span> <span>{e.from}</span>
</div>
- </>);
+ `);
}),
subOption
),
@@ -240,7 +239,7 @@ let INFO =
['e[xcommand]'],
'Open command line with select erection',
makeErectionCommand(function (e, args) {
- let cmdArgs = String(<>{e.text} - {e.by} {e.from} {e.imageURL}</>);
+ let cmdArgs = String(`{e.text} - {e.by} {e.from} {e.imageURL}`);
setTimeout(function () commandline.open('', args[0] + ' ' + cmdArgs, modes.EX), 1);
}),
{
diff --git a/every.js b/every.js
index 0fabbb7..1365a35 100644
--- a/every.js
+++ b/every.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>every.js</name>
<description>to run a specified command every time at specified interval.</description>
@@ -87,7 +87,7 @@ let PLUGIN_INFO =
== Links ==
http://d.hatena.ne.jp/nokturnalmortum/20081102#1225552718
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
ps = [];
diff --git a/extension-manager.js b/extension-manager.js
index 241ddc3..c4fcdc9 100644
--- a/extension-manager.js
+++ b/extension-manager.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>extension manager</name>
<name lang="ja">アドオン管理</name>
@@ -56,11 +56,10 @@ let PLUGIN_INFO =
read the help with the below command.
":help extension-manager-plugin"
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="extension-manager" version="1.1.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/extension-manager.js"
summary="extension manager"
@@ -144,7 +143,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/facebook.js b/facebook.js
index 9c30146..4902be3 100644
--- a/facebook.js
+++ b/facebook.js
@@ -1,6 +1,5 @@
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="facebook" version="0.2.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/facebook.js"
summary="[facebook.js] コマンドラインからfacebookを操作するプラグイン"
@@ -152,7 +151,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function(){
diff --git a/fetchyoutube.js b/fetchyoutube.js
index a19c823..dd8d9e2 100644
--- a/fetchyoutube.js
+++ b/fetchyoutube.js
@@ -22,7 +22,7 @@
(function () {
function fixFilename (filename) {
- const badChars = /[\\\/:;*?"<>|]/g;
+ const badChars = /[\\\/:;*?"`|]/g;
return filename.replace(badChars, '_');
}
diff --git a/forcefocuscontent.js b/forcefocuscontent.js
index 0dbf2ca..8822cfc 100644
--- a/forcefocuscontent.js
+++ b/forcefocuscontent.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>force focuscontent</description>
@@ -8,7 +8,7 @@ var PLUGIN_INFO =
<minVersion>2.0pre</minVersion>
<maxVersion>2.0pre</maxVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/forcefocuscontent.js</updateURL>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
getBrowser().addEventListener("load", onPageLoad, true);
diff --git a/foxage2ch.js b/foxage2ch.js
index 5586757..327ff99 100644
--- a/foxage2ch.js
+++ b/foxage2ch.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="FoxAge2ch" version="1.3.1"
href="https://github.com/vimpr/vimperator-plugins/blob/master/foxage2ch.js"
summary="for FoxAge2ch addon"
@@ -78,7 +77,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/foxytunes.js b/foxytunes.js
index 780dd39..61013f5 100644
--- a/foxytunes.js
+++ b/foxytunes.js
@@ -32,7 +32,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Foxy Tunes</name>
<description>for FoxyTunes</description>
@@ -60,7 +60,7 @@ var PLUGIN_INFO =
+ :ftprevious
+ :ftvolume <VOLUME>
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/function-template.js b/function-template.js
index f739cae..fa1c682 100644
--- a/function-template.js
+++ b/function-template.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="XXXX" version="1.0.0"
href="http://vimpr.github.com/"
summary="XXXXX"
@@ -95,7 +94,7 @@ EOM
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/garbage_finder.js b/garbage_finder.js
index d7072c4..511ec33 100644
--- a/garbage_finder.js
+++ b/garbage_finder.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Garbage Finder</name>
<name lang="ja">ゴミ探し</name>
@@ -58,7 +58,7 @@ let PLUGIN_INFO =
:garbages:
(追加|削除)された変数を表示。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
@@ -116,7 +116,7 @@ let PLUGIN_INFO =
function (args) {
function makeLI (list) {
if (list.length) {
- let result = <></>;
+ let result = ``;
list.forEach(function (it) (result += <li>{it}</li>));
return <ol>{result}</ol>;
}
diff --git a/gmail-commando.js b/gmail-commando.js
index 3d2f95f..cfa4cdb 100644
--- a/gmail-commando.js
+++ b/gmail-commando.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="GMailCommando" version="1.4.11"
href="http://github.com/vimpr/vimperator-plugins/blob/master/gmail-commando.js"
summary="The handy commands for GMail"
@@ -109,7 +108,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/gmperator.js b/gmperator.js
index df11af2..7d9c988 100644
--- a/gmperator.js
+++ b/gmperator.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Vimperator plugin for Greasemonkey</description>
@@ -105,7 +105,7 @@ liberator.plugins.gmperator:
)
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
@@ -235,7 +235,7 @@ liberator.plugins.gmperator = (function(){ //{{{
// ---------------------------
commands.addUserCommand(['gmli[st]','lsgm'],'list Greasemonkey scripts', //{{{
function(args){
- var xml = <></>;
+ var xml = ``;
var scripts = GM_getConfig().scripts;
var reg;
if (args.bang || args.string == 'full'){
diff --git a/google-plus-commando.js b/google-plus-commando.js
index a1b7cb8..1b0440d 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -34,8 +34,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="GooglePlusCommando" version="2.4.7"
href="http://github.com/vimpr/vimperator-plugins/blob/master/google-plus-commando.js"
summary="The handy commands for Google+"
@@ -230,7 +229,7 @@ let g:gplus_commando_map_menu = "m"
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -522,7 +521,7 @@ let g:gplus_commando_map_menu = "m"
// エントリにコメント
function get1 (root) {
function button (editor, name)
- editor.parentNode.querySelector(S.role('button', <>[id$=".{name}"]</>));
+ editor.parentNode.querySelector(S.role('button', `[id$=".{name}"]`));
if (!root)
return;
@@ -574,7 +573,7 @@ let g:gplus_commando_map_menu = "m"
// ダイアログ
function get3 (root) {
function button (editor, name)
- editor.parentNode.querySelector(S.role('button', <>[id$=".{name}"]</>));
+ editor.parentNode.querySelector(S.role('button', `[id$=".{name}"]`));
if (!root)
return;
@@ -832,7 +831,7 @@ let g:gplus_commando_map_menu = "m"
ps.backgroundColor = 'white';
ps.border = 'solid 1px grey';
}
- panel.innerHTML = <>
+ panel.innerHTML = `
<table>
<tr><th>入力</th> <th>効果</th> <th>解説</th> </tr>
<tr><td>*TEXT*</td> <td><b>TEXT</b></td> <td>太字</td> </tr>
@@ -843,7 +842,7 @@ let g:gplus_commando_map_menu = "m"
<tr><td>-ね こ-</td> <td><s>ね こ</s></td> <td>英数字や半角スペースを入れたらOK</td> </tr>
<tr><td>-Aねこす-</td> <td><s>Aねこす</s></td> <td>英数字を前後に入れても良い</td> </tr>
</table>
- </>;
+ `;
move(panel);
parent.appendChild(panel);
@@ -1122,7 +1121,7 @@ let g:gplus_commando_map_menu = "m"
for (let [, root] in Iterator(roots)) {
if (!root.visible)
continue;
- xpath.push(String(<>div[contains(@class, "{s2x(S.closeButton)}")]</>));
+ xpath.push(String(`div[contains(@class, "{s2x(S.closeButton)}")]`));
xpath = xpath.map(function (it) (root.selector + '//' + it));
break;
}
diff --git a/google-search.js b/google-search.js
index 9be5cea..efda50e 100644
--- a/google-search.js
+++ b/google-search.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Google Search, and AutoComplete.</description>
@@ -17,7 +17,7 @@ var PLUGIN_INFO =
google suggest での飛び先はあくまで google ですが、このプラグインは google の検索結果先に飛びます。
この plugin を作ってから multi_requester.js の存在をしってあっちを使えば・・・、と思いました。いちおう favicon が表示されたりします。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
diff --git a/google-tasks.js b/google-tasks.js
index d968b1c..a724043 100644
--- a/google-tasks.js
+++ b/google-tasks.js
@@ -1,4 +1,4 @@
-var INFO =
+var INFO = xml`
<plugin name="google-tasks.js"
version="0.1"
summary="For Google Tasks"
@@ -6,7 +6,7 @@ var INFO =
<author email="ebith.h@gmail.com">ebith</author>
<license href="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
<project name="Vimperator" minVersion="3.3"/>
-</plugin>;
+</plugin>`;
let httpGet = util.httpGet;
@@ -43,17 +43,17 @@ function setup() {
access_token = getAccessToken();
let url = rest_uri + '/users/@me/lists?oauth_token=' + access_token;
let lists = JSON.parse(httpGet(url).responseText).items;
- let tbody = <></>;
+ let tbody = ``;
for (let i=0; i<lists.length; i++) {
let url = rest_uri + '/lists/' + lists[i].id + '/tasks?oauth_token=' + access_token;
let tasks = JSON.parse(httpGet(url).responseText).items;
if (!tasks) { continue; } //空っぽのリストは飛ばす
for (let i2=0; i2<tasks.length; i2++) {
- let taskTitle = (tasks[i2].status == 'completed') ? <>&#x2611;<del>{tasks[i2].title}</del></> : <>&#x2610;{tasks[i2].title}</>;
+ let taskTitle = (tasks[i2].status == 'completed') ? `&#x2611;<del>{tasks[i2].title}</del>` : `&#x2610;{tasks[i2].title}`;
tbody += <tr style="border-bottom: 1px dotted;"><td style="width: 20%">{lists[i].title}</td><td>{taskTitle}</td></tr>;
}
}
- liberator.echo(<><table style="width: 100%; line-height: 1.6; border-collapse: collapse; border-top: 1px solid;">{tbody}</table></>);
+ liberator.echo(`<table style="width: 100%; line-height: 1.6; border-collapse: collapse; border-top: 1px solid;">{tbody}</table>`);
},
{
subCommands: [
diff --git a/googledocs.js b/googledocs.js
index 12e0200..f732ad9 100644
--- a/googledocs.js
+++ b/googledocs.js
@@ -37,7 +37,7 @@
* */
// Last Change: 2009/01/14 22:14:16.
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>provide extended-hints modes for Google Docs</description>
@@ -74,7 +74,7 @@ Google Docs のトップページ ( http://docs.google.com/ ) で ';d' と押し
let googledocs_mapping='g'
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
( function () {
diff --git a/googlekanji.js b/googlekanji.js
index 7381aca..3bea153 100644
--- a/googlekanji.js
+++ b/googlekanji.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Google Kanji</name>
<name lang="ja">Google 漢字</name>
@@ -55,7 +55,7 @@ let PLUGIN_INFO =
が開き、補完が可能になるので、正しそうな漢字を選びます。
すると、クリップボードにその漢字がコピーされます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/haiku.js b/haiku.js
index ba38854..3cbf928 100644
--- a/haiku.js
+++ b/haiku.js
@@ -22,7 +22,7 @@
// un-fav someone's last status.. mean remove Hatena Star.
// :haiku! #keyword
// show the keyword timeline.
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Hatena Haiku Client</description>
@@ -52,7 +52,7 @@ The script allows you to update Haiku status from Vimperator.
:haiku! #keyword:
show the keyword timeline.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
liberator.plugins.haiku = {
@@ -149,8 +149,8 @@ The script allows you to update Haiku status from Vimperator.
statuses.forEach(function(status) {
var text = status.text;
var keyword = status.keyword;
- var star = status.favorited > 0 ? <><img src="http://s.hatena.ne.jp/images/star.gif"/><span style="color:orange;">{'x' + status.favorited}</span></> : <></>;
- var replies = <></>;
+ var star = status.favorited > 0 ? `<img src="http://s.hatena.ne.jp/images/star.gif"/><span style="color:orange;">{'x' + status.favorited}</span>` : ``;
+ var replies = ``;
if (text.indexOf(keyword+"=") == 0) text = status.text.substr(keyword.length + 1);
text = convert(text);
@@ -159,16 +159,16 @@ The script allows you to update Haiku status from Vimperator.
if (status.replies.length > 0){
replies = <dl class="haiku"></dl>;
status.replies.forEach(function(rep){
- replies.* += <>
+ replies.* += `
<dt>
<img src={rep.user.profile_image_url} alt={rep.user.screen_name} class="haiku photo"/>
<strong>{rep.user.name}</strong>
</dt>
<dd class="haiku entry-content">{rep.text.substr(keyword.length)}</dd>
- </>;
+ `;
});
}
- html += <>
+ html += `
<div>
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
@@ -182,7 +182,7 @@ The script allows you to update Haiku status from Vimperator.
</div>
{replies}
<hr/>
- </>;
+ `;
});
return html;
}
diff --git a/happy_hacking_vimperator.js b/happy_hacking_vimperator.js
index 1b0aa79..d721295 100644
--- a/happy_hacking_vimperator.js
+++ b/happy_hacking_vimperator.js
@@ -32,7 +32,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
*/
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Happy Happy Vimperator</name>
<description>This plugin makes you to True Vimperatorer</description>
@@ -51,7 +51,7 @@ let PLUGIN_INFO =
== Requirements ==
Steel Heart
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/hash.js b/hash.js
index 772c3a1..7589cbc 100644
--- a/hash.js
+++ b/hash.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>hash of file</description>
@@ -15,7 +15,7 @@ hash:
:hash md2|md5|sha1|sha256|sha384|sha512 file-path
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/hateDAopener.js b/hateDAopener.js
index 8e9864f..378ead1 100644
--- a/hateDAopener.js
+++ b/hateDAopener.js
@@ -31,7 +31,7 @@
// }}}
// PLUGIN INFO: {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Search specified Hatena::Diary</description>
@@ -84,7 +84,7 @@ let PLUGIN_INFO =
- APIを用意する
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
plugins.hateDAopener = (function(){
@@ -258,13 +258,13 @@ plugins.hateDAopener = (function(){
* template: title & url
*/
function templateTitleAndUrl(item)
- <>
+ `
<img src={getFaviconURI(item.baseUrl + '/')} />
<span class="td-strut"/>{item.name}
<a href={item.text} highlight="simpleURL">
<span class="extra-info">{item.text.replace(/^https?:\/\//, '')}</span>
</a>
- </>;
+ `;
/**
* template: tags
diff --git a/hatebuWatchDog.js b/hatebuWatchDog.js
index 0a683e4..b87f42c 100644
--- a/hatebuWatchDog.js
+++ b/hatebuWatchDog.js
@@ -30,7 +30,7 @@
//
// }}}
// PLUGIN INFO: {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Make notify hatebu-count when specified site's hatebu-count changed.</description>
@@ -89,7 +89,7 @@ let PLUGIN_INFO =
- 監視フレームワークにのっける
]]></detail>
- </VimperatorPlugin>;
+ </VimperatorPlugin>`;
// }}}
// Clear all watchers if started watcher exists.
diff --git a/hatena-bookmark-search.js b/hatena-bookmark-search.js
index 22fc58d..e98fa94 100644
--- a/hatena-bookmark-search.js
+++ b/hatena-bookmark-search.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Hatena Bookmark UserSearch</description>
@@ -63,7 +63,7 @@ let g:hatena_bookmark_suffix_array='true';
-- キャッシュの追加, SuffixArray 検索の追加
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.HatenaBookmark = (function(){
@@ -116,29 +116,29 @@ HatenaBookmark.reload = function() {
HatenaBookmark.Command = {
templateDescription: function (item, text) {
- return <>
+ return `
{
!(item.extra && item.extra.length) ? "" :
<span class="extra-info">
{
template.map(item.extra, function (e)
- <><span highlight={e[2]}>{e[1]}</span></>,
- <>&#xa0;</>/* Non-breaking space */)
+ `<span highlight={e[2]}>{e[1]}</span>`,
+ `&#xa0;`/* Non-breaking space */)
}
</span>
}
- </>
+ `
},
templateTitleIcon: function (item, text) {
var simpleURL = text.replace(/^https?:\/\//, '');
if (simpleURL.indexOf('/') == simpleURL.length-1)
simpleURL = simpleURL.replace('/', '');
- return <><span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : <></>}</span><span class="td-strut"/>{item.item.title}
+ return `<span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : ``}</span><span class="td-strut"/>{item.item.title}
<a href={item.item.url} highlight="simpleURL"><span class="extra-info">{
simpleURL
}</span></a>
- </>
+ `
},
filter: function (_item) {
var item = _item.item;
diff --git a/hatenaStar.js b/hatenaStar.js
index 4c2302a..faca1a1 100644
--- a/hatenaStar.js
+++ b/hatenaStar.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Add Hatena Star.</description>
@@ -8,7 +8,7 @@ var PLUGIN_INFO =
<minVersion>2.3pre</minVersion>
<maxVersion>2.3pre</maxVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/hatenaStar.js</updateURL>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
const Cc = Components.classes;
diff --git a/hatena_fotolife.js b/hatena_fotolife.js
index cb0b146..9d604e4 100644
--- a/hatena_fotolife.js
+++ b/hatena_fotolife.js
@@ -23,7 +23,7 @@
* IN THE SOFTWARE.
* */
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Generates and yanks thumbnail tags in Hatena Fotolife</description>
@@ -64,7 +64,7 @@ hatena_fotolife_hint_key='f'
image_extender_yank_key='f'
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
( function () {
diff --git a/hatena_highlight.js b/hatena_highlight.js
index 2ce0d5c..a3f02c5 100644
--- a/hatena_highlight.js
+++ b/hatena_highlight.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Clear highlight or highlight keywords in Hatena Services.</description>
@@ -26,7 +26,7 @@ Google で検索してはてなにアクセスしたときにハイライトを
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
function toggleHighlight(isClear) {
var elements = window.content.document.getElementsByTagName('span');
diff --git a/hint-tombloo.js b/hint-tombloo.js
index 7c0cfd1..09d9bd6 100644
--- a/hint-tombloo.js
+++ b/hint-tombloo.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Hint mode for Tombloo</description>
@@ -18,7 +18,7 @@ let g:hint_tombloo_xpath = '//img'
Share target element by Tombloo
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/hints-for-embedded.js b/hints-for-embedded.js
index 1fa940b..3f80672 100644
--- a/hints-for-embedded.js
+++ b/hints-for-embedded.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="HintsForEmbeded" version="1.6.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/hints-for-embedded.js"
summary="Add the hints mode for embedded objects."
@@ -123,7 +122,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/hints-yank-paste.js b/hints-yank-paste.js
index 4cd5964..78231c8 100644
--- a/hints-yank-paste.js
+++ b/hints-yank-paste.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Adds "Yank element's text/html/attrs" or "Paste to element" hint mode</description>
@@ -38,7 +38,7 @@ set hintpastetags='//xpath|//xpath2';
Paste(replace) to input/textarea.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
var p = function(msg) {
diff --git a/history-search-backward.js b/history-search-backward.js
index c5bfe0d..45f796f 100644
--- a/history-search-backward.js
+++ b/history-search-backward.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>History search backward like UNIX shell.</description>
@@ -16,7 +16,7 @@ liberator.globalVariables.history_search_backward_map = ['<C-r>'];
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
let p = function(msg) {
diff --git a/imageextender.js b/imageextender.js
index d9078b8..d2452d5 100644
--- a/imageextender.js
+++ b/imageextender.js
@@ -32,7 +32,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* */
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>extend image operation.</description>
@@ -144,7 +144,7 @@ image_skip_prompt='true'
と設定すると、 ';g' で画像の URL をヤンクする拡張ヒントモードが開始されます。
';e' で画像を保存しますが、その際ダイアログは表示されません。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
( function () {
diff --git a/inspector.js b/inspector.js
index dac4b4c..884584f 100644
--- a/inspector.js
+++ b/inspector.js
@@ -1,4 +1,4 @@
-let INFO =
+let INFO = xml`
<plugin name="Inspector" version="0.3"
href="http://github.com/vimpr/vimperator-plugins/raw/master/inspector.js"
summary="run DOM Inspector"
@@ -25,7 +25,7 @@ let INFO =
<p>inspect the return value of evaluated the <a>expr</a></p>
</description>
</item>
-</plugin>;
+</plugin>`;
var inspectorID = "inspector@mozilla.org";
diff --git a/jquery-loader.js b/jquery-loader.js
index 9248e9e..4589145 100644
--- a/jquery-loader.js
+++ b/jquery-loader.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>jQuery Loader</name>
<name lang="ja">jQuery Loader</name>
@@ -52,11 +52,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
Load jQuery for commandline.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="jQueryLoader" version="1.0.1"
href="http://github.com/vimpr/vimperator-plugins/blob/master/jquery-loader.js"
summary="jQuery Loader"
@@ -67,7 +66,7 @@ let INFO =
<project name="Vimperator" minVersion="2.3"/>
<p>Load jQuery for commandline.</p>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/ldc-completer.js b/ldc-completer.js
index 562594c..2ce943e 100644
--- a/ldc-completer.js
+++ b/ldc-completer.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="LivedoorClipCompleter" version="1.0.0"
href="http://vimpr.github.com/"
summary="Add the completer for Livedoor Clip"
@@ -65,7 +64,7 @@ let INFO =
<description><p>同期して、ローカルにインポートする。</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/ldrize_cooperation_fetch_flv.js b/ldrize_cooperation_fetch_flv.js
index df46982..59e9856 100644
--- a/ldrize_cooperation_fetch_flv.js
+++ b/ldrize_cooperation_fetch_flv.js
@@ -1,5 +1,5 @@
// Last Change: 12-Jun-2009. Jan 2008
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Flv Downloader for Nicovideo</description>
@@ -42,7 +42,7 @@ Flv downloader for nicovideo.
Nicovideo Mylist of registration destination.
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
function Deferred () this instanceof Deferred ? this.init(this) : new Deferred();
@@ -184,7 +184,7 @@ var groupId = liberator.globalVariables.nicovideo_mylist || '';
function NiconicoFlvHandler(url, title) {
let videoId = url.match(/\w{2}\d+/)[0];
- let fileName = title.replace(/[?\\*\/:<>|"]/g, '_') + '.flv';
+ let fileName = title.replace(/[?\\*\/:`|"]/g, '_') + '.flv';
Deferred.http.get(nicoApiEndPoint + videoId).next(function(apiResult){
let flvUrl = decodeURIComponent(apiResult.responseText.match(/url=(.*?)&/)[1]);
diff --git a/literal-bmark.js b/literal-bmark.js
index ac2f0a1..ff0d08b 100644
--- a/literal-bmark.js
+++ b/literal-bmark.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>literal bmark</name>
<description>:bmark command that can included characters such as '"' in the URL.</description>
@@ -58,7 +58,7 @@ let PLUGIN_INFO =
引数は :bmark コマンドと同じですが、URL に '"' などの文字を含めることが出来ます。
ただし、-title などのオプションは URL に先行する必要があります。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/lo.js b/lo.js
index 1159a3b..9d450b0 100644
--- a/lo.js
+++ b/lo.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Link Opener</name>
<name lang="ja">Link Opener</name>
@@ -49,11 +49,10 @@ let PLUGIN_INFO =
<detail><![CDATA[
:help link-opener-plugin
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="link-opener" version="2.3.2"
href="http://github.com/vimpr/vimperator-plugins/blob/master/lo.js"
summary="Link Opener"
@@ -153,7 +152,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
// Usage:
@@ -336,7 +335,7 @@ let INFO =
context.process = [
process[0],
function (item, text)
- (item.thumbnail ? <><img src={item.thumbnail} style={CompItemStyle}/>{text}</>
+ (item.thumbnail ? `<img src={item.thumbnail} style={CompItemStyle}/>{text}`
: process[1].apply(this, arguments))
];
context.completions = lolinks.map(function (it, i) ({elem: it, index: i}));
diff --git a/localkeymode.js b/localkeymode.js
index ff46394..639c047 100644
--- a/localkeymode.js
+++ b/localkeymode.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>localkeymode</name>
<description>assign temporary keymap</description>
@@ -52,7 +52,7 @@ var PLUGIN_INFO =
extra:
noremap, count 等の指定。addUserMap にて使用されます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.LocalKeyMode = (function() {
diff --git a/loginManager.js b/loginManager.js
index 80b1eab..efb9e90 100644
--- a/loginManager.js
+++ b/loginManager.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>login manager</description>
@@ -17,7 +17,7 @@ var PLUGIN_INFO =
=== TODO ===
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function(){
diff --git a/lolipo-ojisan.js b/lolipo-ojisan.js
index 68f2dfb..91b87ff 100644
--- a/lolipo-ojisan.js
+++ b/lolipo-ojisan.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>lolipo-ojisan</name>
<name lang="ja">ロリポおじさん</name>
@@ -58,11 +58,10 @@ let PLUGIN_INFO =
ロリポおじさんに話しかけます。
[message] を省略すると、魅惑のチャットモードが始まります。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="lolipo-ojisan" version="1.0.1"
href="http://github.com/vimpr/vimperator-plugins/blob/master/lolipo-ojisan.js"
summary="Chat with lolipo-ojisan."
@@ -99,7 +98,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
@@ -152,10 +151,10 @@ let INFO =
let you = getContent('.you > div > div > p');
let ojisan = getContent('.ojisan > div > div > p');
- liberator.echo(<>
+ liberator.echo(`
<dt>&#x3042;&#x306A;&#x305F;</dt><dd>{you}</dd>
<dt>&#x30ED;&#x30EA;&#x30DD;&#x304A;&#x3058;&#x3055;&#x3093;</dt><dd>{ojisan}</dd>
- </>);
+ `);
after && after();
}
);
diff --git a/longcat.js b/longcat.js
index 58b92e2..fde4c20 100644
--- a/longcat.js
+++ b/longcat.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="longcat" version="1.0.0"
href="http://vimpr.github.com/"
summary="Longcat beautifies your life."
@@ -50,7 +49,7 @@ let INFO =
<description><p>Meow!</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
@@ -195,7 +194,7 @@ let INFO =
let canvas = doc.createElement('canvas');
let bg = doc.createElement('div');
- canvas.setAttribute('style', String(<><![CDATA[
+ canvas.setAttribute('style', String(`<![CDATA[
position: absolute; !important;
top: 0px !important;
background-color: black !important;
@@ -203,9 +202,9 @@ let INFO =
right: 0;
left: 0;
z-index: 666;
- ]]></>));
+ ]]>`));
- bg.setAttribute('style', String(<><![CDATA[
+ bg.setAttribute('style', String(`<![CDATA[
position: fixed; !important;
top: 0px;
left: 0px;
@@ -213,7 +212,7 @@ let INFO =
width: 100%;
height: 100%;
z-index: 616;
- ]]></>));
+ ]]>`));
canvas.width = 114;
canvas.height = 100 + n * 100 + 30;
diff --git a/maine_coon.js b/maine_coon.js
index ad0023f..fab21ca 100644
--- a/maine_coon.js
+++ b/maine_coon.js
@@ -32,7 +32,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
*/
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Maine Coon</name>
<name lang="ja">メインクーン</name>
@@ -139,7 +139,7 @@ let PLUGIN_INFO =
== メインクーン ==
http://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%82%AF%E3%83%BC%E3%83%B3
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/marker_reader.js b/marker_reader.js
index d6fe0a1..2bd1c7c 100644
--- a/marker_reader.js
+++ b/marker_reader.js
@@ -5,7 +5,7 @@
http://www.gnu.org/copyleft/gpl.html
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>marker PageDown/PageUp.</description>
@@ -44,7 +44,7 @@ let g:marker_reader_mapping = "J,K"
adds mapping J = mnext, K = mprev.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
plugins.marker_reader = (function() {
diff --git a/matanico.js b/matanico.js
index 6e25421..802d167 100644
--- a/matanico.js
+++ b/matanico.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>update Twitter status to current video/search page information and comment.</description>
@@ -111,7 +111,7 @@ matanico_related_tag_format:
matanico_related_tag_servicename:
matanico_related_tag_format で指定した $SERVICENAME 部分がこの値で展開されます。書式はそのままで投稿する文字列のみを変更したい場合にこの値を変更することで設定が容易になります。設定なしの場合 "またキーワードでニコニコタグ検索してる" が使用されます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/memo.js b/memo.js
index a282f5b..ef94ad0 100644
--- a/memo.js
+++ b/memo.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Write a memo to the specified file.</description>
@@ -59,7 +59,7 @@ let PLUGIN_INFO =
:memo fooooobar!
"fooooobar!" と、メモに書く
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// References:
@@ -122,7 +122,7 @@ let PLUGIN_INFO =
if (arg.literalArg) {
puts(arg.literalArg);
} else {
- let out = <></>;
+ let out = ``;
gets().split(/\n/).reverse().forEach(function (l) {
out += <li>{l}</li>
});
diff --git a/microUpdate.js b/microUpdate.js
index 274e20a..85e681e 100644
--- a/microUpdate.js
+++ b/microUpdate.js
@@ -31,7 +31,7 @@
// }}}
// PLUGIN INFO: {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Update blog more quickly.</description>
@@ -67,7 +67,7 @@ let PLUGIN_INFO =
== ToDo ==
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
plugins.microUpdate = (function() {
@@ -84,12 +84,12 @@ plugins.microUpdate = (function() {
transport.open('POST', this.endpoint['collection'], false /* synchronous */);
transport.setRequestHeader('X-WSSE', hatena.wsseHeader);
transport.setRequestHeader('Content-Type', 'application/atom+xml;type=entry;charset="utf-8"');
- transport.send(<>
+ transport.send(`
<entry xmlns="http://purl.org/atom/ns#">
<title>{title}</title>
<content type="text/plain">{content}</content>
</entry>
- </>.toXMLString());
+ `.toXMLString());
return transport.responseXML;
}
};
diff --git a/migemized_find.js b/migemized_find.js
index 5930e16..2f27b85 100644
--- a/migemized_find.js
+++ b/migemized_find.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="MigemizedFind" version="2.11.5"
href="http://vimpr.github.com/"
summary="Search and Highlight with Migemo."
@@ -99,7 +98,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/migemo-find.js b/migemo-find.js
index 22560ad..ed529f8 100644
--- a/migemo-find.js
+++ b/migemo-find.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Replace default search to migemo.</description>
@@ -25,7 +25,7 @@ migemo-find.js は pIXMigemoFind が提供している XUL/Migemo のインタ
-- 検索開始文字の先頭が \ なら、通常の検索を行う。migemo りたくない時など用に
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.migemoFind = (function() {
let p = function(m) Application.console.log(m);
diff --git a/mixiecho.js b/mixiecho.js
index 2f27b7c..d08af50 100644
--- a/mixiecho.js
+++ b/mixiecho.js
@@ -83,13 +83,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
- <>
+ `
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
title={status.user.screen_name}
class="twitter photo"/>
<strong>{status.user.name}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="twitter entry-content">%s&#x202C;</span>', status.text))
.join("<br/>");
diff --git a/mkcolor.js b/mkcolor.js
index 19c65db..0415769 100644
--- a/mkcolor.js
+++ b/mkcolor.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>mkcolor</name>
<name lang="ja">mkcolor</name>
@@ -51,7 +51,7 @@ let PLUGIN_INFO =
- mkcolor <FILENAME>
<FILENAME> に現在の Highlight 設定を書き出します。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/morse.js b/morse.js
index 9543307..99c7e31 100644
--- a/morse.js
+++ b/morse.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Morse</name>
<name lang="ja">Morse</name>
@@ -54,10 +54,10 @@ let PLUGIN_INFO =
:morse text:
output text by morse code.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
+let INFO = xml`
<plugin name="Morse" version="1.2.1"
href="http://github.com/vimpr/vimperator-plugins/blob/master/morse.js"
summary="Morse code"
@@ -76,7 +76,7 @@ let INFO =
</p>
</description>
</item>
-</plugin>;
+</plugin>`;
// }}}
diff --git a/mouse_gestures.js b/mouse_gestures.js
index 4699f98..21b3aa7 100644
--- a/mouse_gestures.js
+++ b/mouse_gestures.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Mouse Gestures</name>
<name lang='ja'>マウスジェスチャー</name>
@@ -68,7 +68,7 @@ var PLUGIN_INFO =
- noremap flag
キーを送る、かつ、そのキーコードを noremap で処理を行いたい場合、true を指定してください。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.MouseGestures = (function() {
diff --git a/mpd-currentsong.js b/mpd-currentsong.js
index 983d9ef..829ff1e 100644
--- a/mpd-currentsong.js
+++ b/mpd-currentsong.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="MPDCurrentSong" version="1.0.0"
href="http://vimpr.github.com/"
summary="Get current song for MPD"
@@ -45,7 +44,7 @@ let INFO =
<project name="Vimperator" minVersion="3.0"/>
<p>
<code><![CDATA[
-:cabbrev -javascript .song let (song = plugins.mpdCurrentsong.API.getSongInfo()) <>{song.Title} / {song.Artist} #NowPlaying</>
+:cabbrev -javascript .song let (song = plugins.mpdCurrentsong.API.getSongInfo()) `{song.Title} / {song.Artist} #NowPlaying`
]]> </code>
</p>
</plugin>
@@ -59,11 +58,11 @@ let INFO =
<project name="Vimperator" minVersion="3.0"/>
<p>
<code><![CDATA[
-:cabbrev -javascript .song let (song = plugins.mpdCurrentsong.API.getSongInfo()) <>{song.Title} / {song.Artist} #NowPlaying</>
+:cabbrev -javascript .song let (song = plugins.mpdCurrentsong.API.getSongInfo()) `{song.Title} / {song.Artist} #NowPlaying`
]]> </code>
</p>
</plugin>
-</>;
+`;
// }}}
diff --git a/multi-exec.js b/multi-exec.js
index 0c21093..cb93311 100644
--- a/multi-exec.js
+++ b/multi-exec.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Multi-execute</name>
<description>Add the command which execute some ex-commands.</description>
@@ -70,7 +70,7 @@ let PLUGIN_INFO =
:mx ; echo 1 ; echo 2
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/my-style.js b/my-style.js
index 2ae6098..6d69312 100644
--- a/my-style.js
+++ b/my-style.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="MyStyle" version="1.0.0"
href="http://vimpr.github.com/"
summary="Apply my style sheet to current page."
@@ -121,7 +120,7 @@ EOM
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -129,14 +128,14 @@ EOM
const StyleNamePrefix = 'my-style-';
const DefaultDefinedStyle = {
- BLACKBOARD: <><![CDATA[
+ BLACKBOARD: `<![CDATA[
* {
color: white !important;
background-color: #004040 !important;
background-image: none !important;
}
- ]]></>,
- NEKOME: <><![CDATA[
+ ]]>`,
+ NEKOME: `<![CDATA[
body {
background-image: url(http://snca.net/images/redeye.jpg) !important;
}
@@ -144,15 +143,15 @@ EOM
background: transparent !important;
color: white !important;
}
- ]]></>,
- VIMPMASK: <><![CDATA[
+ ]]>`,
+ VIMPMASK: `<![CDATA[
body {
background-image: url(http://snca.net/images/ildjarn.png) !important;
background-repeat: no-repeat !important;
background-position: right bottom !important;
background-attachment: fixed !important;
}
- ]]></>
+ ]]>`
};
if (!__context__.DefinedStyles) {
diff --git a/namakubi.js b/namakubi.js
index 7d389f5..46d4ed6 100644
--- a/namakubi.js
+++ b/namakubi.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Namakubi</name>
<name lang="ja">生首</name>
@@ -60,10 +60,10 @@ let PLUGIN_INFO =
喋ります!
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
+let INFO = xml`
<plugin name="生首" version="1.0.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/namakubi.js"
summary="Wonderful Namakubi Talker"
@@ -108,7 +108,7 @@ let INFO =
<link topic="http://chi.usamimi.info/Program/Application/BouyomiChan/">http://chi.usamimi.info/Program/Application/BouyomiChan/</link>
で Windows 用バイナリが手に入ります。
</p>
-</plugin>;
+</plugin>`;
// }}}
(function () {
diff --git a/newtab.js b/newtab.js
index b9e9061..865febe 100644
--- a/newtab.js
+++ b/newtab.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="Newtab" version="1.0.0"
href="http://vimpr.github.com/"
summary="Add about:newtab URL Completer."
@@ -50,7 +49,7 @@ let INFO =
]]></code>
</p>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/nextlink.js b/nextlink.js
index e96ea1c..df6e073 100644
--- a/nextlink.js
+++ b/nextlink.js
@@ -5,7 +5,7 @@
http://www.gnu.org/copyleft/gpl.html
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>nextlink</name>
<description>mapping "[[", "]]" by AutoPagerize XPath.</description>
@@ -62,7 +62,7 @@ n:
== TODO ==
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
liberator.plugins.nextlink = (function() {
diff --git a/nicolist.js b/nicolist.js
index 854a869..c4892d9 100644
--- a/nicolist.js
+++ b/nicolist.js
@@ -3,7 +3,7 @@
* http://twitter.com/ebith
*/
-var INFO =
+var INFO = xml`
<plugin name="nicolist"
version="0.3"
summary="ニコニコ動画のマイリストを操作します"
@@ -31,7 +31,7 @@ var INFO =
<spec>:nicolist open <a>mylist-id</a> <a>video-id</a></spec>
<description><p><a>mylist-id</a>のみであればマイリストを、<a>video-id</a>の指定もあれば動画を開きます</p></description>
</item>
-</plugin>;
+</plugin>`;
commands.addUserCommand(
['nicolist'],
diff --git a/nnp_cooperation.js b/nnp_cooperation.js
index ea96aac..94a109a 100644
--- a/nnp_cooperation.js
+++ b/nnp_cooperation.js
@@ -140,7 +140,7 @@ liberator.modules.commands.addUserCommand(
}
// evaluate variables
- let xml = <>
+ let xml = `
{style()}
{table({
numofDisplay: (nodesLength < numofList) ? nodesLength : numofList,
@@ -149,7 +149,7 @@ liberator.modules.commands.addUserCommand(
statuses: getStatusText(playlistNode.id),
items: items,
})}
- </>
+ `
liberator.echo(xml, liberator.modules.commandline.FORCE_MULTILINE);
},
diff --git a/notifier.js b/notifier.js
index cb78c9d..ff5266f 100644
--- a/notifier.js
+++ b/notifier.js
@@ -5,7 +5,7 @@
http://www.opensource.jp/licenses/mit-license.html
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>change notice framework.</description>
@@ -122,7 +122,7 @@ buildMessages(diff):
this.diff() により抽出されたオブジェクトを元に、liberator.plugins.notifier.Message のインスタンス、
または、その配列を返却して下さい。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
if (!liberator.plugins.libly) {
diff --git a/nume.js b/nume.js
index 6063293..ec6e11b 100644
--- a/nume.js
+++ b/nume.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="nume" version="1.0.0"
href="http://vimpr.github.com/"
summary="Make numeronymized text."
@@ -50,7 +49,7 @@ let INFO =
<description><p>Make numeronymized text.</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/open-frame.js b/open-frame.js
index 945128d..1560b56 100644
--- a/open-frame.js
+++ b/open-frame.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>openframe-command</name>
<name lang="ja">openframeコマンド</name>
@@ -52,11 +52,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
コマンド "openframe" と "tabopenframe" を追加します。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="openframe-command" version="1.2.1"
href="http://github.com/vimpr/vimperator-plugins/blob/master/open-frame.js"
summary="Add openframe command."
@@ -95,7 +94,7 @@ let INFO =
<description><p>新しいタブに選択したフレームを開く</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/opener.js b/opener.js
index 88eb1b5..7cd3b3c 100644
--- a/opener.js
+++ b/opener.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>opener</name>
<name lang="ja">opener</name>
@@ -17,11 +17,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
URL 移動時にそのURLが既に開かれていたら、そのタブに移動する
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="opener" version="1.0.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/opener.js"
summary="URL 移動時にそのURLが既に開かれていたら、そのタブに移動する"
@@ -31,7 +30,7 @@ let INFO =
<project name="Vimperator" minVersion="2.3"/>
<p>URL 移動時にそのURLが既に開かれていたら、そのタブに移動する</p>
</plugin>
-</>;
+`;
// }}}
/*
diff --git a/option-selector.js b/option-selector.js
index ee29dc7..db4609f 100644
--- a/option-selector.js
+++ b/option-selector.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Option Selector</name>
<description>Select a option of the select element.</description>
@@ -51,7 +51,7 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
"select" 要素上で <C-i> を打つ。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/options-migrate-user-pref.js b/options-migrate-user-pref.js
index 07aa8a7..229c0b5 100644
--- a/options-migrate-user-pref.js
+++ b/options-migrate-user-pref.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>options migrate user_pref</description>
@@ -41,7 +41,7 @@ EOF
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
let p = function(msg) {
diff --git a/pino.js b/pino.js
index ca8cd47..f0de3df 100644
--- a/pino.js
+++ b/pino.js
@@ -30,7 +30,7 @@
//
// }}}
// PLUGIN INFO: {{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Open livedoor Reader pinned items</description>
@@ -142,7 +142,7 @@ var PLUGIN_INFO =
linkに該当するピンを一覧から削除する。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
let self = liberator.plugins.pino = (function() {
// COMMAND /////////////////////////////////////////////////////// {{{
diff --git a/pluginManager.js b/pluginManager.js
index f191b9a..26442a3 100644
--- a/pluginManager.js
+++ b/pluginManager.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Manage Vimperator Plugins</description>
@@ -99,7 +99,7 @@ detail:
- スタイルの追加(これはすべき?)
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.pluginManager = (function(){
@@ -109,22 +109,22 @@ var tags = { // {{{
name: function(info) fromUTF8Octets(info.toString()),
author: function(info){
var name = fromUTF8Octets(info.toString());
- var xml = <>{name}</>;
+ var xml = `{name}`;
if (info.@mail.toString() != '')
- xml += <><span> </span>&lt;<a href={'mailto:'+name+' <'+info.@mail+'>'} highlight="URL">{info.@mail}</a>&gt;</>;
+ xml += `<span> </span>&lt;<a href={'mailto:'+name+' <'+info.@mail+'>'} highlight="URL">{info.@mail}</a>&gt;`;
if (info.@homepage.toString() != '')
- xml += <><span> </span>({makeLink(info.@homepage.toString())})</>;
+ xml += `<span> </span>({makeLink(info.@homepage.toString())})`;
return xml;
},
description: function(info) makeLink(fromUTF8Octets(info.toString())),
license: function(info){
- var xml = <>{fromUTF8Octets(info.toString())}</>;
+ var xml = `{fromUTF8Octets(info.toString())}`;
if (info.@document.toString() != '')
- xml += <><span> </span>{makeLink(info.@document.toString())}</>;
+ xml += `<span> </span>{makeLink(info.@document.toString())}`;
return xml;
},
require: function(infos){
- let xml = <></>;
+ let xml = ``;
for (let i=0; i<infos.length(); i++){
let info = infos[i];
let name = info.toString();
@@ -195,10 +195,10 @@ function makeLink(str, withLink){
while (s.length > 0) {
let m = s.match(/(?:https?:\/\/|mailto:)\S+/);
if (m) {
- result += <>{s.slice(0, m.index)}<a href={withLink ? m[0] : '#'} highlight="URL">{m[0]}</a></>;
+ result += `{s.slice(0, m.index)}<a href={withLink ? m[0] : '#'} highlight="URL">{m[0]}</a>`;
s = s.slice(m.index + m[0].length);
} else {
- result += <>{s}</>;
+ result += `{s}`;
break;
}
}
@@ -230,7 +230,7 @@ Plugin.prototype = { // {{{
initialize: function(path, context){
this.path = path;
this.name = context.NAME;
- this.info = context.PLUGIN_INFO || <></>;
+ this.info = context.PLUGIN_INFO || ``;
this.getItems();
},
getItems: function(){
@@ -386,7 +386,7 @@ var WikiParser = (function () {
return new arguments.callee(lines, result, indents);
this.lines = lines;
- this.result = result || <></>;
+ this.result = result || ``;
this.indents = indents || [];
}
State.prototype = {
@@ -439,7 +439,7 @@ var WikiParser = (function () {
Array.concat(ary);
function xmlJoin (xs, init) {
- let result = init || <></>;
+ let result = init || ``;
for (let i = 0, l = xs.length; i < l; i++)
result += xs[i];
return result;
@@ -470,13 +470,13 @@ var WikiParser = (function () {
// FIXME
function link (s) {
let m;
- let result = <></>;
+ let result = ``;
while (s && (m = s.match(/(?:https?:\/\/|mailto:)\S+/))) {
- result += <>{RegExp.leftContext || ''}<a href={m[0]}>{m[0]}</a></>;
+ result += `{RegExp.leftContext || ''}<a href={m[0]}>{m[0]}</a>`;
s = RegExp.rightContext;
}
if (s)
- result += <>{s}</>;
+ result += `{s}`;
return result;
}
@@ -591,7 +591,7 @@ var WikiParser = (function () {
if (m) {
let h = m[2];
let next = C.many(self.wikiLine)(st.next.indent(m[1]));
- return next.indentBack().set(xmlJoin([<>{h}<br/></>].concat(next.result))).wrap('li');
+ return next.indentBack().set(xmlJoin([`{h}<br/>`].concat(next.result))).wrap('li');
}
return Error(c, st);
};
@@ -606,7 +606,7 @@ var WikiParser = (function () {
emptyLine: function emptyLine (st) {
if (/^\s*$/.test(st.head)) {
- return st.next.set(<></>);
+ return st.next.set(``);
}
return Error('spaces', st);
},
@@ -614,7 +614,7 @@ var WikiParser = (function () {
// St -> St XML
plain: function plain (st) {
let text = st.head;
- return st.next.set(<>{stripAndLink(text)}<br/></>);
+ return st.next.set(`{stripAndLink(text)}<br/>`);
},
// St -> St XML
@@ -750,7 +750,7 @@ HTMLStack.prototype = { // {{{
}
var buf = this.last[this.last.length()-1];
if (buf.nodeKind() == 'text'){
- this.last[this.last.length()-1] += this.isInline(xml) ? <><br/>{xml}</> : xml;
+ this.last[this.last.length()-1] += this.isInline(xml) ? `<br/>{xml}` : xml;
} else if (this.isInline(xml)){
this.stack[this.length-1] += xml;
} else if (buf.localName() == xml.localName()){
@@ -783,7 +783,7 @@ HTMLStack.prototype = { // {{{
if (tmp[tmp.length()-1].nodeKind() == 'element'){
buf[buf.length()-1].* += xml;
} else {
- buf[buf.length()-1].* += <><br/>{xml}</>;
+ buf[buf.length()-1].* += `<br/>{xml}`;
}
} else {
this.last[this.last.length()-1].* += xml;
@@ -965,14 +965,14 @@ var public = {
return plugins.filter(function(plugin) names.indexOf(plugin.name) >= 0);
},
checkVersion: function(names){
- let xml = <></>;
+ let xml = ``;
this.getPlugins(names).forEach(function(plugin){
xml += plugin.checkVersion();
});
return xml;
},
update: function(names){
- let xml = <></>;
+ let xml = ``;
this.getPlugins(names).forEach(function(plugin){
xml += plugin.updatePlugin();
});
@@ -986,7 +986,7 @@ var public = {
return;
},
list: function(names, verbose){
- let xml = <></>
+ let xml = ``
this.getPlugins(names).forEach(function(plugin){
xml += plugin.itemFormatter(verbose);
});
diff --git a/plugin_loader.js b/plugin_loader.js
index b304fbf..d71a310 100644
--- a/plugin_loader.js
+++ b/plugin_loader.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Plugin Loader</name>
<name lang="ja">プラグインローダー</name>
@@ -60,7 +60,7 @@ let PLUGIN_INFO =
== Link ==
http://d.hatena.ne.jp/nokturnalmortum/20081008#1223397705
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
diff --git a/prevent_focus_ietab.js b/prevent_focus_ietab.js
index 4417175..4bf467f 100644
--- a/prevent_focus_ietab.js
+++ b/prevent_focus_ietab.js
@@ -8,7 +8,7 @@
// }}}
//
// PLUGIN INFO: {{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>prevent_focus_ietab</name>
<description>This plugin prevents focusing IETab automaticaly.</description>
@@ -31,7 +31,7 @@ var PLUGIN_INFO =
== 使い方 ==
vimpのpluginディレクトリにこのファイルを格納してください。それだけです。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function() {
diff --git a/property-panel.js b/property-panel.js
index 8a92797..fea7229 100644
--- a/property-panel.js
+++ b/property-panel.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="PropertyPanel" version="1.0.0"
href="http://vimpr.github.com/"
summary="Show a object in Property Panel."
@@ -53,7 +52,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/pypi.js b/pypi.js
index 2b03c02..2109e13 100644
--- a/pypi.js
+++ b/pypi.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>pypi</name>
<description>Add a pypi command</description>
@@ -15,7 +15,7 @@ var PLUGIN_INFO =
:pypi {package or term}
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.pypi = (function(){
diff --git a/readcatlater.js b/readcatlater.js
index 770bc3e..4b0ccd9 100644
--- a/readcatlater.js
+++ b/readcatlater.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Read Cat Later</name>
<description>Read it later</description>
@@ -73,7 +73,7 @@ let PLUGIN_INFO =
== Link ==
http://d.hatena.ne.jp/nokturnalmortum/20080918#1221729188
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/readitlater.js b/readitlater.js
index 32ebed4..53828b7 100644
--- a/readitlater.js
+++ b/readitlater.js
@@ -5,7 +5,7 @@
* TODO:ADDにbufferからのリストを入れられるように
*/
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>readitlater</name>
<description lang="ja">Read it Later を快適に使うためのプラグインです</description>
@@ -55,7 +55,7 @@ let PLUGIN_INFO =
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
diff --git a/refcontrol.js b/refcontrol.js
index 54261b3..d5ef0fb 100644
--- a/refcontrol.js
+++ b/refcontrol.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>refcontrol</name>
<description>control referrer</description>
@@ -40,7 +40,7 @@ param:
url:
指定したURLでリファラーを送信します。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.RefControl = (function() {
diff --git a/refe.js b/refe.js
index b9f5388..43be175 100644
--- a/refe.js
+++ b/refe.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="refe" version="1.0.0"
href="http://vimpr.github.com/"
summary="refe (Ruby reference) for vimperator"
@@ -75,7 +74,7 @@ let INFO =
<description><p>補完で検索し、リファレンスのページを新しいタブに開きます。</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/relatedBlogSearch.js b/relatedBlogSearch.js
index e1987e2..f79cf14 100644
--- a/relatedBlogSearch.js
+++ b/relatedBlogSearch.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Show/Open related blog</description>
@@ -62,7 +62,7 @@ let コマンドで設定してください(しない場合はデフォルト値
%updated%:
更新された日時(%Y-%m-%dT%H:%M:%SZ)
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.relatedBlogSearch = (function(){
const LANG = window.navigator.language;
diff --git a/removetabs.js b/removetabs.js
index a753ab6..d55b6b9 100644
--- a/removetabs.js
+++ b/removetabs.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>removetabs</name>
<description>RemoveTabs</description>
@@ -30,7 +30,7 @@ https://addons.mozilla.org/ja/firefox/addon/4227
noremap <C-S-n> :removetabsright<CR>
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
liberator.modules.commands.addUserCommand(['removetabsleft'], 'remove tabs left',
diff --git a/reporter.js b/reporter.js
index ed2fd0a..4a022be 100644
--- a/reporter.js
+++ b/reporter.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>mkreport</name>
<description>Write current information to the specified file</description>
@@ -58,7 +58,7 @@ let PLUGIN_INFO =
- デフォルトから変更されている preference (about:config でみられる設定) のリスト
- バージョンなどの情報
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/resizable_textarea.js b/resizable_textarea.js
index dbad5a5..0d87bad 100644
--- a/resizable_textarea.js
+++ b/resizable_textarea.js
@@ -5,7 +5,7 @@
http://www.opensource.jp/licenses/mit-license.html
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Allows you to resize textareas.</description>
@@ -41,7 +41,7 @@ you can resize current component by using a keyboad.
"escape" or "enter":
end of resize.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/retweet.js b/retweet.js
index 09d4d3e..b97be81 100644
--- a/retweet.js
+++ b/retweet.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>retweet</name>
<description>ReTweet This Page.</description>
@@ -19,7 +19,7 @@ Usage:
ReTweet This Post.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
//
(
diff --git a/reveal-ie-ctrl-a-images.js b/reveal-ie-ctrl-a-images.js
index 9424c42..5ce2324 100644
--- a/reveal-ie-ctrl-a-images.js
+++ b/reveal-ie-ctrl-a-images.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Reveal Image</name>
<description>Reveal IE Ctrl-A images.</description>
@@ -63,7 +63,7 @@ let PLUGIN_INFO =
g:reveal_ie_image_mode_reverse = 'R':
反対版のヒントモード
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/sbmcommentsviewer.js b/sbmcommentsviewer.js
index 3e6d599..fb9c647 100644
--- a/sbmcommentsviewer.js
+++ b/sbmcommentsviewer.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>SBM Comments Viewer</name>
<description>List show Social Bookmark Comments</description>
@@ -43,7 +43,7 @@ e.g.)
一度取得したものは(30分ほど)キャッシュに貯めてますので何度も見直すことが可能です。
粋なコマンド名募集中
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.sbmCommentsViewer = (function(){
var isFilterNoComments = liberator.globalVariables.sbm_comments_viewer_filter_nocomments || false;
@@ -74,11 +74,11 @@ SBMContainer.prototype = { //{{{
));
},
toHTML: function(format, countOnly){
- var label = <>
- {this.faviconURL ? <img src={this.faviconURL} width="16" height="16" style="vertical-align: middle; margin-right: 5px;" /> : <></>}
+ var label = `
+ {this.faviconURL ? <img src={this.faviconURL} width="16" height="16" style="vertical-align: middle; margin-right: 5px;" /> : ``}
{manager.type[this.type] + ' ' + this.count + '(' + this.entries.length + ')'}
- {this.pageURL ? <a href="#" highlight="URL" style="margin-left: 5px;">{this.pageURL}</a> : <></>}
- </>;
+ {this.pageURL ? <a href="#" highlight="URL" style="margin-left: 5px;">{this.pageURL}</a> : ``}
+ `;
if (countOnly){
return label;
} else {
@@ -87,7 +87,7 @@ SBMContainer.prototype = { //{{{
</div>;
let self = this;
xml.* += (function(){
- var div = <></>;
+ var div = ``;
self.entries.forEach(function(e){
if (isFilterNoComments && !e.comment) return;
div += e.toHTML(format);
@@ -129,10 +129,10 @@ SBMEntry.prototype = { //{{{
while (s.length > 0) {
let m = s.match(/(?:https?:\/\/|mailto:)\S+/);
if (m) {
- result += <>{s.slice(0, m.index)}<a href={withLink ? m[0] : '#'} highlight="URL">{m[0]}</a></>;
+ result += `{s.slice(0, m.index)}<a href={withLink ? m[0] : '#'} highlight="URL">{m[0]}</a>`;
s = s.slice(m.index + m[0].length);
} else {
- result += <>{s}</>;
+ result += `{s}`;
break;
}
}
@@ -144,7 +144,7 @@ SBMEntry.prototype = { //{{{
format.forEach(function(colum){
switch(colum){
case 'id':
- xml.* += <span class="liberator-sbmcommentsviewer-id" style="margin-right: 10px;">{self.userIcon ? <><img src={self.userIcon} width="16" height="16" style="margin-right: 5px; vertical-align: middle;"/>{self.id}</> : <>{self.id}</>}</span>;
+ xml.* += <span class="liberator-sbmcommentsviewer-id" style="margin-right: 10px;">{self.userIcon ? `<img src={self.userIcon} width="16" height="16" style="margin-right: 5px; vertical-align: middle;"/>{self.id}` : `{self.id}`}</span>;
break;
case 'timestamp':
xml.* += <span class="liberator-sbmcommentsviewer-timestamp" style="margin-right: 10px;">{self.formatDate()}</span>;
diff --git a/scalapi.js b/scalapi.js
index e0082da..0de76cc 100644
--- a/scalapi.js
+++ b/scalapi.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Scala API document</description>
@@ -16,7 +16,7 @@ Scala の API を検索し、保管し、該当のページを開きます。
引数には正規表現も利用できます。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
var p = function(arg) {
diff --git a/scenario-actor.js b/scenario-actor.js
index 727edb0..d896f17 100644
--- a/scenario-actor.js
+++ b/scenario-actor.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>browser act scenario semi-automatic.</description>
@@ -78,7 +78,7 @@ and action expressions are quoted by {begin: ...}.
- fix bugs.
- a lot.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/session-manager.js b/session-manager.js
index 117aae3..1560c58 100644
--- a/session-manager.js
+++ b/session-manager.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Session Manager</name>
<name lang="ja">Session Manager</name>
@@ -51,11 +51,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
sm <sub-command> <session-name>
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="session-manager" version="1.3.4"
href="http://github.com/vimpr/vimperator-plugins/blob/master/session-manager"
summary="for Session Manager Addon"
@@ -96,7 +95,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
// 参考スクリプト:
diff --git a/slideshare.js b/slideshare.js
index 9ebc472..0a6f9bc 100644
--- a/slideshare.js
+++ b/slideshare.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="Slideshare" version="1.1.1"
href="http://vimpr.github.com/"
summary="Controll slideshare's slide."
@@ -85,7 +84,7 @@ let INFO =
<description><p>フルスクリーン切り換え</p></description>
</item>
</plugin>
-</>;
+`;
// }}}
@@ -158,14 +157,14 @@ let INFO =
function FlashSlideshare (doc, callback) {
let player = doc.querySelector('#player');
- const fullScreenStyle = <><![CDATA[
+ const fullScreenStyle = `<![CDATA[
position : fixed !important;
top : 0px !important;
left : 0px !important;
z-index : 1000 !important;
width : 100% !important;
height : 100% !important;
- ]]></>;
+ ]]>`;
let toggleFullscreen = makeFullscreenToggler(doc, makeStyleToggler(fullScreenStyle, player));
diff --git a/spatial-navigation.js b/spatial-navigation.js
index 74c15d1..feb0192 100644
--- a/spatial-navigation.js
+++ b/spatial-navigation.js
@@ -38,7 +38,7 @@
/* Original version is "SpatialNavigation.js" of Firefox. */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Spatial Navigation</name>
<name lang="ja">空間ナビゲーション</name>
@@ -54,11 +54,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
Read the help. (:help SpatialNavigation-plugin)
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="SpatialNavigation" version="1.0.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/spatial-navigation.js"
summary="Spatial navigation"
@@ -95,7 +94,7 @@ let g:spatial_navigation_mappings="&lt;A-h> &lt;A-j> &lt;A-k> &lt;A-l>"
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/statstat.js b/statstat.js
index 6263aa3..aff34d8 100644
--- a/statstat.js
+++ b/statstat.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Stat Stat</name>
<name lang="ja">すた☆すた</name>
@@ -52,10 +52,10 @@ let PLUGIN_INFO =
Links:
http://d.hatena.ne.jp/nokturnalmortum/20081202/1228218135
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
+let INFO = xml`
<plugin name="Stat Stat" version="1.0.4"
href="http://github.com/vimpr/vimperator-plugins/blob/master/statstat.js"
summary="Show information on statusline."
@@ -74,7 +74,7 @@ let INFO =
</p>
</description>
</item>
-</plugin>;
+</plugin>`;
// }}}
(function () {
diff --git a/statusbar_panel.js b/statusbar_panel.js
index 7180890..156fd7f 100644
--- a/statusbar_panel.js
+++ b/statusbar_panel.js
@@ -1,4 +1,4 @@
-let INFO = //{{{
+let INFO = xml` //{{{
<plugin name="statusbar panel" version="0.1"
href="https://github.com/vimpr/vimperator-plugins/raw/master/statusbar_panel.js"
summary="Click statusbar panel"
@@ -29,7 +29,7 @@ let INFO = //{{{
<p><oa>-double-click</oa>を指定するとダブルクリックになります。</p>
</description>
</item>
-</plugin>;
+</plugin>`;
//}}}
let MOUSE_BUTTON_LEFT = 0;
@@ -140,7 +140,7 @@ commands.addUserCommand(['statusbarpanel'],'click statusbar panel',
context.keys = { text: 'text', description: 'desc', icon: 'icon' };
context.compare = CompletionContext.Sort.unsorted;
context.process = [function (item, text) {
- return <><span highlight="CompIcon">{item.icon ? item.icon : <></>}</span><span class="td-strut"/>{text}</>
+ return `<span highlight="CompIcon">{item.icon ? item.icon : ``}</span><span class="td-strut"/>{text}`
}];
var list = generateStatusbarpaneIDlList(arg);
diff --git a/statusline-toolbar.js b/statusline-toolbar.js
index cabfde9..069ef69 100644
--- a/statusline-toolbar.js
+++ b/statusline-toolbar.js
@@ -1,4 +1,4 @@
-var INFO =
+var INFO = xml`
<plugin name="Statusline Toolbar" version="0.1"
href="http://github.com/vimpr/vimperator-plugins/raw/master/statusline-toolbar.js"
summary="Append Toolbar to Statusline"
@@ -29,7 +29,7 @@ var INFO =
</p>
</description>
</item>
-</plugin>;
+</plugin>`;
var updater = {
"star-button": [
diff --git a/stella.js b/stella.js
index 88b7dd1..3df8b75 100644
--- a/stella.js
+++ b/stella.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Stella</name>
<name lang="ja">すてら</name>
@@ -239,7 +239,7 @@ addLocalMappings(
== Link ==
http://d.hatena.ne.jp/nokturnalmortum/20081213/1229168832
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
/* {{{
@@ -366,7 +366,7 @@ Thanks:
},
fixFilename: function (filename) {
- const badChars = /[\\\/:;*?"<>|]/g;
+ const badChars = /[\\\/:;*?"`|]/g;
return filename.replace(badChars, '_');
},
@@ -2033,7 +2033,7 @@ Thanks:
context.process = [
process[0],
function (item, text)
- (item.thumbnail ? <><img src={item.thumbnail} style="margin-right: 0.5em; height: 3em;"/>{text}</>
+ (item.thumbnail ? `<img src={item.thumbnail} style="margin-right: 0.5em; height: 3em;"/>{text}`
: process[1].apply(this, arguments))
];
lastCompletions = self.player.relations;
diff --git a/stylish.js b/stylish.js
index d9a9782..0599dad 100644
--- a/stylish.js
+++ b/stylish.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>stylish</description>
@@ -11,7 +11,7 @@ var PLUGIN_INFO =
<license>public domain</license>
<detail><![CDATA[
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function(){
diff --git a/subscldr.js b/subscldr.js
index cfdb2a0..c34523e 100644
--- a/subscldr.js
+++ b/subscldr.js
@@ -9,7 +9,7 @@
// }}}
//
// PLUGIN INFO: {{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Adds subscriptions to livedoor Reader/Fastladder in place.</description>
@@ -44,7 +44,7 @@ var PLUGIN_INFO =
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
liberator.plugins.subscldr = (function() {
diff --git a/tab-history.js b/tab-history.js
index e6d61c3..62f75b7 100644
--- a/tab-history.js
+++ b/tab-history.js
@@ -1,4 +1,4 @@
-var INFO =
+var INFO = xml`
<plugin name="TabHistory"
version="0.1"
summary="Go back/forward the tab selection history"
@@ -25,7 +25,7 @@ var INFO =
<p>Go forward the history</p>
</description>
</item>
-</plugin>;
+</plugin>`;
var tabHistory = (function(){
const gBrowser = window.gBrowser,
diff --git a/tabmixplus.js b/tabmixplus.js
index 5251dda..ef3b3de 100644
--- a/tabmixplus.js
+++ b/tabmixplus.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>add some tabmixplus commands</description>
@@ -22,7 +22,7 @@ lock:
lock current tab
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function(){
commands.add(["dup[licate]"], "duplicate current tab", function(args) {
diff --git a/tabsort.js b/tabsort.js
index 40023e5..4dc0a9c 100644
--- a/tabsort.js
+++ b/tabsort.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>tabsort</name>
<description>Add ":tabsort" and ":tabuniq" command.</description>
@@ -59,7 +59,7 @@ let PLUGIN_INFO =
||<
なんかを .vimperatorrc に書いておくと良いよ。
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/tada.js b/tada.js
index b1a9cf9..7227c2b 100644
--- a/tada.js
+++ b/tada.js
@@ -9,7 +9,7 @@
// }}}
// PLUGIN INFO: {{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Show ToDo items in commandline buffer. Also add item to your Ta-da list.</description>
@@ -100,7 +100,7 @@ var PLUGIN_INFO =
- 表示のパフォーマンス改善
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
liberator.plugins.tada = (function(){
diff --git a/takahashiPresentation.js b/takahashiPresentation.js
index 03f5ff9..304ea38 100644
--- a/takahashiPresentation.js
+++ b/takahashiPresentation.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>simple takahashi-method presentation tool</description>
@@ -18,7 +18,7 @@ presentation:
open HTML file includes <pre id="page">...</pre> and <div id="text">...</div>.
start :presentation.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
let keys = [
diff --git a/tinymenu.js b/tinymenu.js
index ea2cd8e..d25179b 100644
--- a/tinymenu.js
+++ b/tinymenu.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Tiny Menu for Vimperator</description>
@@ -17,7 +17,7 @@ thx icon id:tnx.
:opentinymenu:
Open the tiny menu.
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
if (!liberator.plugins.tinymenu)
diff --git a/tinyurl.js b/tinyurl.js
index 2a8bc0f..9fc9a89 100644
--- a/tinyurl.js
+++ b/tinyurl.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>TinyURL from Vimperator</description>
@@ -23,7 +23,7 @@ plugins.tinyurl.getExpand(url):
return ExpandURL
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/toggler.js b/toggler.js
index 0f06ca9..f1057a3 100644
--- a/toggler.js
+++ b/toggler.js
@@ -91,7 +91,7 @@ var manager = {
}
},
list: function(name){
- var xml = <></>;
+ var xml = ``;
if (name && (name in settings)){
xml += settings[name].list();
} else {
diff --git a/tombloo.js b/tombloo.js
index 69e91fd..eee068b 100644
--- a/tombloo.js
+++ b/tombloo.js
@@ -1,4 +1,4 @@
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Tombloo integrate plugin</description>
@@ -35,7 +35,7 @@ let PLUGIN_INFO =
ツールバーから選択できる Tombloo のメニューを実行します
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function () {
diff --git a/translaten.js b/translaten.js
index 13b5597..7e75dd1 100644
--- a/translaten.js
+++ b/translaten.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>translaten</name>
<name lang="ja">自動一括翻訳</name>
@@ -61,7 +61,7 @@ let PLUGIN_INFO =
== Link ==
http://vimperator.g.hatena.ne.jp/nokturnalmortum/20090104/1231070505
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/twopen.js b/twopen.js
index 04637f9..e80987a 100644
--- a/twopen.js
+++ b/twopen.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>twopen</name>
<description>open pages relative to the twitter id</description>
@@ -108,7 +108,7 @@ let PLUGIN_INFO =
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/uaSwitchLite.js b/uaSwitchLite.js
index 6c98a8c..0262eff 100644
--- a/uaSwitchLite.js
+++ b/uaSwitchLite.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>UserAgentSwitcherLite</name>
<description>switch user agent</description>
@@ -38,7 +38,7 @@ var PLUGIN_INFO =
EOM
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
liberator.plugins.UserAgentSwitcherLite = (function(){
diff --git a/umihara.js b/umihara.js
index d3ca884..4875e82 100644
--- a/umihara.js
+++ b/umihara.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Exchange Converter</name>
<name lang="ja">外国為替換算</name>
@@ -86,7 +86,7 @@ let PLUGIN_INFO =
== Require ==
_libly.js
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/unicode.js b/unicode.js
index 1f2a038..0ebb35f 100644
--- a/unicode.js
+++ b/unicode.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Copy the escaped-unicode text to the clipboard.</description>
@@ -50,7 +50,7 @@ let PLUGIN_INFO =
:uc <MULTIBYTE_TEXT>
:uc! <ESCAPED_UNICODE_TEXT>
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/usi.js b/usi.js
index 10aee50..c716226 100644
--- a/usi.js
+++ b/usi.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="usi.js" version="1.3.4"
href="http://vimpr.github.com/"
summary="for Remember The Milk."
@@ -55,7 +54,7 @@ let INFO =
<description><p></p></description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -496,12 +495,12 @@ let INFO =
}
let n = new Date().getTime();
Utils.timeArraySort(cs);
- let contents = <></>;
+ let contents = ``;
for (let [, [d, [a, b]]] in Iterator(cs)) {
let hl = (n - d) > 0 ? 'ErrorMsg' : '';
contents += <tr highlight={hl}><td>{a}</td><td>{b}</td></tr>;
}
- liberator.echo(<><table>{contents}</table></>);
+ liberator.echo(`<table>{contents}</table>`);
}
}
);
diff --git a/uuid.js b/uuid.js
index 863c5a3..24b84d1 100644
--- a/uuid.js
+++ b/uuid.js
@@ -1,5 +1,5 @@
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>UUID generator</description>
@@ -17,7 +17,7 @@ uuid:
== THANKS ==
http://moz-addon.g.hatena.ne.jp/ZIGOROu/20080417/1208413079
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function() {
diff --git a/video-controller.js b/video-controller.js
index 0368afd..fc4aa62 100644
--- a/video-controller.js
+++ b/video-controller.js
@@ -34,8 +34,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
// PLUGIN_INFO {{{
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="VideoController" version="1.1.1"
href="http://github.com/vimpr/vimperator-plugins/blob/master/video-controller.js"
summary="Control HTML5 Videos"
@@ -70,7 +69,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
diff --git a/vimp_to_android_phone.js b/vimp_to_android_phone.js
index f428f59..c0015fc 100644
--- a/vimp_to_android_phone.js
+++ b/vimp_to_android_phone.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Send to your Android Phone</description>
@@ -7,7 +7,7 @@ var PLUGIN_INFO =
<minVersion>2.3</minVersion>
<maxVersion>2.3</maxVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/vimp_to_android_phone.js</updateURL>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function() {
diff --git a/wassr.js b/wassr.js
index 5c027ac..8520450 100644
--- a/wassr.js
+++ b/wassr.js
@@ -81,13 +81,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
- <>
+ `
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
title={status.user.screen_name}
class="wassr photo"/>
<strong>{status.user_login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s&#x202C;</span>', status.html))
.join("<br/>");
@@ -126,13 +126,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
- <>
+ `
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
title={status.user.screen_name}
class="wassr photo"/>
<strong>{status.user_login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s&#x202C;</span>', status.html))
.join("<br/>");
@@ -150,12 +150,12 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ");
for (var n = 0; n < items.length; n++)
- html += <>
+ html += `
<strong>{items[n].getElementsByTagName('title')[0].textContent.replace(/&gt;/g, '>').replace(/&lt;/g, '<').replace(/^%/, '')}&#x202C;</strong>
: <span class="wassr entry-content">{items[n].getElementsByTagName('description')[0].textContent.replace(/&gt;/g, '>').replace(/&lt;/g, '<')}&#x202C;</span>
<br />
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ");
liberator.echo(html, true);
}
@@ -198,13 +198,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
todos.map(function(todo)
- <>
+ `
<img src="http://wassr.jp/img/icn-balloon.gif"
alt="todo"
title="todo"
class="wassr icon"/>
<strong>{todo.todo_rid}</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s</span>', todo.body))
.join("<br/>");
@@ -223,13 +223,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
footmarks.map(function(footmark)
- <>
+ `
<img src={"http://wassr.jp/user/" + footmark.login_id + "/profile_img.png.32"}
alt={footmark.nick}
title={footmark.nick}
class="wassr photo"/>
<strong>{footmark.login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ")).join("<br/>");
liberator.echo(html, true);
@@ -246,13 +246,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
footmarks.map(function(footmark)
- <>
+ `
<img src={"http://wassr.jp/user/" + footmark.login_id + "/profile_img.png.32"}
alt={footmark.nick}
title={footmark.nick}
class="wassr photo"/>
<strong>{footmark.login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ")).join("<br/>");
liberator.echo(html, true);
diff --git a/win-mouse.js b/win-mouse.js
index 285b838..89dae08 100644
--- a/win-mouse.js
+++ b/win-mouse.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="Win Cursor" version="1.3.2"
href="http://vimpr.github.com/"
summary="Cursor control plugin for MS Windows"
@@ -119,7 +118,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
@@ -558,7 +557,7 @@ let INFO =
function displayCurrent () {
let pos = API.position;
let col = API.getPixel(pos);
- return liberator.echo(<>[Position] {pos.x}, {pos.y} [Color] {col.r}, {col.g}, {col.b} ({col.name})</>);
+ return liberator.echo(`[Position] {pos.x}, {pos.y} [Color] {col.r}, {col.g}, {col.b} ({col.name})`);
}
commands.addUserCommand(
diff --git a/xpath_hint.js b/xpath_hint.js
index 754a105..835595a 100644
--- a/xpath_hint.js
+++ b/xpath_hint.js
@@ -5,7 +5,7 @@
http://www.opensource.jp/licenses/mit-license.html
}}} END LICENSE BLOCK ***/
// PLUGIN_INFO//{{{
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>add "get element's XPath" hint mode</description>
@@ -22,7 +22,7 @@ var PLUGIN_INFO =
copy selected element's XPath
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
//}}}
(function(){
diff --git a/yetmappings.js b/yetmappings.js
index 955bb23..d7ba675 100644
--- a/yetmappings.js
+++ b/yetmappings.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Yet Mappings</name>
<description>Display the keys that are not mapped yet.</description>
@@ -54,7 +54,7 @@ let PLUGIN_INFO =
== Links ==
http://d.hatena.ne.jp/nokturnalmortum/20081109/1226223461
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
(function () {
diff --git a/zip-de-download.js b/zip-de-download.js
index 9e0de28..27aad76 100644
--- a/zip-de-download.js
+++ b/zip-de-download.js
@@ -1,4 +1,4 @@
-let INFO =
+let INFO = xml`
<plugin name="zip-de-download" version="0.7.1"
href=""
summary="ZIPでダウンロードするお"
@@ -74,7 +74,7 @@ let INFO =
</p>
</description>
</item>
-</plugin>;
+</plugin>`;
// FIXME: 将来的には、storageに入れるべき
// FIXME: あと、それぞれダウンロード先を指定できた方が良い(?)
@@ -320,14 +320,14 @@ let SITE_INFO = [
}
if ("-list" in arg){
let [file, urls, comment] = self.download(arg[0], true, option);
- let xml = <>
+ let xml = `
<h1><span>Download :</span><span>{file.path}</span></h1>
<p>{comment}</p>
<ol>
{liberator.modules.template.map(urls, function(url) <li>{url}</li>)}
</ol>
<br/>
- </>;
+ `;
liberator.echo(xml, true);
return;
}
diff --git a/zoom-em-all.js b/zoom-em-all.js
index 3479bcc..177cc6a 100644
--- a/zoom-em-all.js
+++ b/zoom-em-all.js
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// PLUGIN_INFO {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>Zoom Em All</name>
<name lang="ja">Zoom Em All</name>
@@ -52,11 +52,10 @@ let PLUGIN_INFO =
<detail lang="ja"><![CDATA[
----
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="ZoomEmAll" version="1.1.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/zoom-em-all.js"
summary="Zoom or pan for whole firefox."
@@ -95,7 +94,7 @@ let INFO =
</description>
</item>
</plugin>
-</>;
+`;
// }}}
(function () {
diff --git a/跳.js b/跳.js
index ef89be4..a6d351e 100644
--- a/跳.js
+++ b/跳.js
@@ -33,8 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
}}} */
// INFO {{{
-let INFO =
-<>
+let INFO = xml`
<plugin name="跳.jp" version="1.0.2"
href="http://vimpr.github.com/"
summary="跳ねます"
@@ -52,7 +51,7 @@ let INFO =
</p></description>
</item>
</plugin>
-</>;
+`;
// }}}