Skip to content

Commit d269345

Browse files
committed
ミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョ
1 parent 0589643 commit d269345

File tree

160 files changed

+469
-507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+469
-507
lines changed

PMWriter.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@
8181
}
8282

8383
function concatXML (xmls) {
84-
let result = <></>;
84+
let result = ``;
8585
xmls.forEach(function (xml) result += xml);
8686
return result;
8787
}
8888

8989
function langList (info, name) {
90-
let result = <></>;
90+
let result = ``;
9191
let i = info.length();
9292
while (i-- > 0) {
9393
if (info[i].@lang.toString()) {
@@ -124,7 +124,7 @@
124124
if (!tag)
125125
tag = 'div';
126126

127-
let result = <></>;
127+
let result = ``;
128128

129129
for (let i = 0, l = info.length(); i < l; i++) {
130130
let it = info[i];
@@ -146,8 +146,8 @@
146146
};
147147

148148
let files = io.File(pluginDirPath).readDirectory();
149-
let indexHtml = <></>;
150-
let allHtml = <></>;
149+
let indexHtml = ``;
150+
let allHtml = ``;
151151
let pminfos = [];
152152

153153
files.forEach(function (file) {
@@ -236,7 +236,7 @@
236236
true,
237237
function (it) (it.toString()) || '---')
238238

239-
let versionsBody = <></>;
239+
let versionsBody = ``;
240240

241241
VERSIONS.forEach(function (ver) {
242242
let url = CodeReposBranch + ver + '/' + pluginFilename;
@@ -245,17 +245,17 @@
245245
file.append(ver);
246246
file.append(pluginFilename);
247247
versionsBody +=
248-
<>
248+
`
249249
<dt>{'for ' + ver}</dt>
250-
{file.exists() ? <a href={url} class="coderepos" target="_blank">{url}</a> : <>not supported</>}
251-
</>;
250+
{file.exists() ? <a href={url} class="coderepos" target="_blank">{url}</a> : `not supported`}
251+
`;
252252
});
253253

254254
versionsBody +=
255-
<>
255+
`
256256
<dt>{'for Nightly'}</dt>
257257
<a href={CodeRepos + pluginFilename} class="coderepos" target="_blank">{CodeRepos + pluginFilename}</a>
258-
</>;
258+
`;
259259

260260

261261
// <dt>Vimperator version</dt>

_libly.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}}} END LICENSE BLOCK ***/
88
// PLUGIN_INFO//{{{
99
/*
10-
var PLUGIN_INFO =
10+
var PLUGIN_INFO = xml`
1111
<VimperatorPlugin>
1212
<name>libly(filename _libly.js)</name>
1313
<description>Vimperator plugins library?</description>
@@ -190,7 +190,7 @@ clearCache:
190190
wedata 読込み成功したら、強制的にキャッシュと置き換えるの作って!
191191
192192
]]></detail>
193-
</VimperatorPlugin>;
193+
</VimperatorPlugin>`;
194194
*/
195195
//}}}
196196
//if (!liberator.plugins.libly) {

access_hatena.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var PLUGIN_INFO =
1+
var PLUGIN_INFO = xml`
22
<VimperatorPlugin>
33
<name>{NAME}</name>
44
<description>Access to Hatena Sevices quickly.</description>
@@ -46,7 +46,7 @@ map ; :accesshatena
4646
# 最後にスペースを入れておくと直ぐにホストの入力から始められます.
4747
4848
]]></detail>
49-
</VimperatorPlugin>;
49+
</VimperatorPlugin>`;
5050
(function(){
5151
var useWedata;
5252
var ignoreIds;

account_switcher.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var PLUGIN_INFO =
1+
var PLUGIN_INFO = xml`
22
<VimperatorPlugin>
33
<name>{NAME}</name>
44
<description>Switch account easily.</description>
@@ -50,7 +50,7 @@ liberator.accountSwitcherOpenNewTab = 1;
5050
||<
5151
5252
]]></detail>
53-
</VimperatorPlugin>;
53+
</VimperatorPlugin>`;
5454
(function(){
5555
var services = [];
5656
var accounts = [];
@@ -180,7 +180,7 @@ liberator.accountSwitcherOpenNewTab = 1;
180180
if (value.indexOf('=') > 0) {
181181
params.push(value);
182182
} else {
183-
res.responseText.match(new RegExp('<([^<>]*?name=\"' + value + '\"[^<>]*?)>'));
183+
res.responseText.match(new RegExp('<([^`]*?name=\"' + value + '\"[^`]*?)>'));
184184
RegExp.$1.match(/value=\"([\w-]+)\"/);
185185
params.push(value + '=' + encodeURIComponent(RegExp.$1));
186186
}

adddialog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3333
THE SOFTWARE.
3434
}}} */
3535

36-
let PLUGIN_INFO = // {{{
36+
let PLUGIN_INFO = xml` // {{{
3737
<VimperatorPlugin>
3838
<name>{NAME}</name>
3939
<description>Add/Delete a :dialog argument.</description>
@@ -62,7 +62,7 @@ let PLUGIN_INFO = // {{{
6262
:deldialog gmmanage
6363
||<
6464
]]></detail>
65-
</VimperatorPlugin>;
65+
</VimperatorPlugin>`;
6666
/// }}}
6767

6868
liberator.plugins.adddialog = (function(args) { // {{{

alert.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}}} */
88

99
// PLUGIN_INFO {{{
10-
let PLUGIN_INFO =
10+
let PLUGIN_INFO = xml`
1111
<VimperatorPlugin>
1212
<name>Alert</name>
1313
<name lang="ja">アラート</name>
@@ -48,7 +48,7 @@ let PLUGIN_INFO =
4848
JavaScriptでSLを走らせる「SL.JS」を作りました ::: creazy photograph
4949
http://creazy.net/2008/02/sl_js.html
5050
]]></detail>
51-
</VimperatorPlugin>;
51+
</VimperatorPlugin>`;
5252
// }}}
5353

5454
(function () {
@@ -388,14 +388,14 @@ let PLUGIN_INFO =
388388
let sleep = parseFloat(arg || 3) * 1000;
389389
let sz = innerWidth / msg.length / 1.5;
390390
liberator.echo(
391-
<div style="background: white; color: black;">
391+
xml`<div style="background: white; color: black;">
392392
<table>
393393
<tr>
394394
<td><img src={gunsou}/></td>
395395
<td style={"font-size: " + sz + "px; white-space: nowrap;"}>{msg}</td>
396396
</tr>
397397
</table>
398-
</div>
398+
</div>`
399399
);
400400
setTimeout(next, sleep);
401401
},

alias.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
3333
}}} */
3434

3535
// PLUGIN_INFO {{{
36-
let PLUGIN_INFO =
36+
let PLUGIN_INFO = xml`
3737
<VimperatorPlugin>
3838
<name>alias</name>
3939
<name lang="ja">alias</name>
@@ -54,11 +54,10 @@ let PLUGIN_INFO =
5454
:alias <new-command-name> <old-command-name>:
5555
コマンド <old-command-name> に <new-command-name> という別名をつけます。
5656
]]></detail>
57-
</VimperatorPlugin>;
57+
</VimperatorPlugin>`;
5858
// }}}
5959
// INFO {{{
60-
let INFO =
61-
<>
60+
let INFO = xml`
6261
<plugin name="alias" version="1.0.0"
6362
href="http://github.com/vimpr/vimperator-plugins/blob/master/alias.js"
6463
summary="Define the alias for a command."
@@ -107,7 +106,7 @@ let INFO =
107106
:lazy alias newName oldCommandName
108107
</ex></code>
109108
</plugin>
110-
</>;
109+
`;
111110
// }}}
112111

113112

amazon_simple_uri.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// PLUGIN_INFO//{{{
2-
var PLUGIN_INFO =
2+
var PLUGIN_INFO = xml`
33
<VimperatorPlugin>
44
<name>amazon_simple_uri</name>
55
<description>Copy Amazon Simple URI.</description>
@@ -19,7 +19,7 @@ var PLUGIN_INFO =
1919
と設定することにより、Amazon アソシエイトID(上の例ではhogehoge-22)をURLに追加します。
2020
2121
]]></detail>
22-
</VimperatorPlugin>;
22+
</VimperatorPlugin>`;
2323
//}}}
2424
//
2525
(function()

amebanow.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
3333
}}} */
3434

3535
// PLUGIN_INFO {{{
36-
let PLUGIN_INFO =
36+
let PLUGIN_INFO = xml`
3737
<VimperatorPlugin>
3838
<name>AmebaNau</name>
3939
<name lang="ja">Amebaなう</name>
@@ -55,10 +55,10 @@ let PLUGIN_INFO =
5555
let g:amebanow_multipost = "twitter|wassr"
5656
||<
5757
]]></detail>
58-
</VimperatorPlugin>;
58+
</VimperatorPlugin>`;
5959
// }}}
6060
// INFO {{{
61-
let INFO =
61+
let INFO = xml`
6262
<plugin name="AmebaNow" version="1.0.4"
6363
href="http://github.com/vimpr/vimperator-plugins/blob/master/amebanow.js"
6464
summary="AmebaNau"
@@ -77,7 +77,7 @@ let INFO =
7777
</p>
7878
</description>
7979
</item>
80-
</plugin>;
80+
</plugin>`;
8181
// }}}
8282

8383

appendAnchor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let PLUGIN_INFO =
1+
let PLUGIN_INFO = xml`
22
<VimperatorPlugin>
33
<name>appendAnchor</name>
44
<description>append anchors to texts look like url.</description>
@@ -27,7 +27,7 @@ let PLUGIN_INFO =
2727
g:auto_append_anchor_once:
2828
最初の一回だけ。
2929
]]></detail>
30-
</VimperatorPlugin>;
30+
</VimperatorPlugin>`;
3131

3232
(function(){
3333

appinfo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// PLUGIN_INFO//{{{
2-
var PLUGIN_INFO =
2+
var PLUGIN_INFO = xml`
33
<VimperatorPlugin>
44
<name>{NAME}</name>
55
<description>show application information</description>
@@ -15,7 +15,7 @@ appinfo [information]:
1515
echo and copy mozilla information
1616
1717
]]></detail>
18-
</VimperatorPlugin>;
18+
</VimperatorPlugin>`;
1919
//}}}
2020

2121
(function() {

applauncher.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var PLUGIN_INFO =
1+
var PLUGIN_INFO = xml`
22
<VimperatorPlugin>
33
<name>AppLauncher</name>
44
<name lang='ja'>アプリケーションランチャー</name>
@@ -30,7 +30,7 @@ var PLUGIN_INFO =
3030
引数を複数指定する場合は配列形式で指定してください。
3131
applauncher_charset を指定すると、渡される文字列が指定の文字セットに変換されます。
3232
]]></detail>
33-
</VimperatorPlugin>;
33+
</VimperatorPlugin>`;
3434

3535
liberator.plugins.AppLauncher = (function(){
3636
const UConv = Cc['@mozilla.org/intl/scriptableunicodeconverter'].getService(Ci.nsIScriptableUnicodeConverter);

asdfghjkl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
3333
}}} */
3434

3535
// PLUGIN_INFO {{{
36-
let PLUGIN_INFO =
36+
let PLUGIN_INFO = xml`
3737
<VimperatorPlugin>
3838
<name>asdfghjkl;</name>
3939
<description>Inputting numbers by asdfghjkl; keys in hint mode.</description>
@@ -85,7 +85,7 @@ let PLUGIN_INFO =
8585
== Link ==
8686
http://d.hatena.ne.jp/nokturnalmortum/20081021#1224543467
8787
]]></detail>
88-
</VimperatorPlugin>;
88+
</VimperatorPlugin>`;
8989
// }}}
9090

9191
(function () {

atnd.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// INFO {{{
2-
let INFO =
3-
<>
2+
let INFO = xml`
43
<plugin name="atnd" version="0.1.0"
54
href="http://github.com/vimpr/vimperator-plugins/blob/master/atnd.js"
65
summary="Atndのイベント検索"
@@ -20,7 +19,7 @@ let INFO =
2019
</description>
2120
</item>
2221
</plugin>
23-
</>;
22+
`;
2423
// }}}
2524

2625

atodeyomu.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// PLUGIN_INFO//{{{
2-
var PLUGIN_INFO =
2+
var PLUGIN_INFO = xml`
33
<VimperatorPlugin>
44
<name>{NAME}</name>
55
<description>atodeyomu</description>
@@ -11,7 +11,7 @@ var PLUGIN_INFO =
1111
<license>public domain</license>
1212
<detail><![CDATA[
1313
]]></detail>
14-
</VimperatorPlugin>;
14+
</VimperatorPlugin>`;
1515
//}}}
1616

1717
(function(){

0 commit comments

Comments
 (0)