From 27808e83be05aac27880d2e06bd8d593f4961a94 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 7 Apr 2013 12:09:59 +0900
Subject: Fix
いいいぃいぃぃぃぃいぃぃふぉおおおおおおうううううえっっっっっっくす!!!
---
memo.js | 16 ++++++++--------
twittperator.js | 6 +++---
twittperator/twsidebar.tw | 29 ++++++++++++++---------------
3 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/memo.js b/memo.js
index ef94ad0..53f19c1 100644
--- a/memo.js
+++ b/memo.js
@@ -122,9 +122,9 @@ let PLUGIN_INFO = xml`
if (arg.literalArg) {
puts(arg.literalArg);
} else {
- let out = ``;
+ let out = xml``;
gets().split(/\n/).reverse().forEach(function (l) {
- out +=
{l}
+ out += xml`${l}`;
});
liberator.echo(out);
}
@@ -142,16 +142,16 @@ let PLUGIN_INFO = xml`
let desc = item[1] || this.process[1].call(this, item, item.description);
if (item.description && item.description.length) {
- return
+ return xml`
- {item.description}
+ ${item.description}
- ;
+
`;
}
- return
-
{item[0]}
- ;
+ return xml`
+
${item[0]}
+ `;
};
context.filters = [function (item) this.match(item.description)];
diff --git a/twittperator.js b/twittperator.js
index 604503c..40bc733 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -1707,9 +1707,9 @@ let INFO = xml`
let center = m[0];
let [head, tail] = [center[0], center.slice(1)];
let right = str.substring(m.index + m[0].length);
- let content = head === "@" ? ` ${center} `
- : ` ${center} `;
- return `${Utils.anchorLink(left)}${content}${Utils.anchorLink(right)}`;
+ let content = head === "@" ? xml` ${center} `
+ : xml` ${center} `;
+ return xml`${Utils.anchorLink(left)}${content}${Utils.anchorLink(right)}`;
}
return str;
}, // }}}
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index ee8ba3b..191fc13 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -84,7 +84,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
str = str.trim();
let reg = /https?:\/\/[^\s]+|[#@]\w+/g;
XML.ignoreWhitespace = false;
- let m, i = 0, buf = "", x = ;
+ let m, i = 0, buf = "", x = xml``;
while((m=reg.exec(str))){
buf = str.substring(i, m.index);
if (buf)
@@ -103,8 +103,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
klass += " twlist-url";
href = m[0];
}
- x.appendChild({m[0]});
+ x.appendChild(xml`${m[0]}`);
i=reg.lastIndex;
}
buf = str.substr(i);
@@ -128,32 +127,32 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
let nameClass = className('item-name') + ' ' + (t.protected ? className('tweet-protected') : '');
xml =
- 70 ? 2 : 0)),
"width: " + px(sbWidth - 100) + ' !important'
].join(';')}
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
+
-
-
- {escapeBreakers(t.sub || t.time)}
+
+
+ ${escapeBreakers(t.sub || t.time)}
- {escapeBreakers(t.text)}
+ ${escapeBreakers(t.text)}
- {escapeBreakers(t.sub || '')}
- {escapeBreakers(t.time || '')}
+ ${escapeBreakers(t.sub || '')}
+ ${escapeBreakers(t.time || '')}
- ;
+ `;
return xml;
}
--
cgit v1.2.3