aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/stella.js b/stella.js
index 88b7dd1..425b839 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, '_');
},
@@ -956,7 +956,7 @@ Thanks:
[
'tags',
XMLList([
- <span>[<a href={v.href}>{v.textContent}</a>]</span>
+ xml`<span>[<a href=${v.href}>${v.textContent}</a>]</span>`
for ([, v] in Iterator(doc.querySelectorAll('#eow-tags > li > a')))
].join(''))
],
@@ -1112,7 +1112,7 @@ Thanks:
[
'tags',
XMLList([
- <span>[<a href={v.href}>{v.textContent}</a>]</span>
+ xml`<span>[<a href=${v.href}>${v.textContent}</a>]</span>`
for ([, v] in Iterator(doc.querySelectorAll('#eow-tags > li > a')))
].join(''))
],
@@ -1339,12 +1339,12 @@ Thanks:
get pageinfo () {
let v = content.wrappedJSObject.Video;
return [
- ['thumbnail', <img src={v.thumbnail} />],
+ ['thumbnail', xml`<img src=${v.thumbnail} />`],
['comment', U.toXML(v.description)],
[
'tag',
[
- <span>[<a href={this.makeURL(t, Player.URL_TAG)}>{t}</a>]</span>
+ xml`<span>[<a href=${this.makeURL(t, Player.URL_TAG)}>${t}</a>]</span>`
for each (t in Array.slice(v.tags))
].join('')
]
@@ -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;
@@ -2054,7 +2054,7 @@ Thanks:
function (verbose)
(self.isValid && self.player.has('pageinfo', 'r')
? [
- [n, <div style="white-space: normal">{modules.template.maybeXML(v)}</div>]
+ [n, xml`<div style="white-space: normal">${modules.template.maybeXML(v)}</div>`]
for each ([n, v] in self.player.pageinfo)
]
: [])