aboutsummaryrefslogtreecommitdiffstats
path: root/haiku.js
diff options
context:
space:
mode:
Diffstat (limited to 'haiku.js')
-rw-r--r--haiku.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/haiku.js b/haiku.js
index 410e97b..39176c9 100644
--- a/haiku.js
+++ b/haiku.js
@@ -177,7 +177,7 @@
'<div><object width="300" height="250" data="' + url + '" type="application/x-shockwave-flash">'+
'<param name="wmode" value="transparent"/><param name="allowFullScreen" value="true"/>'+
'</object></div>';
- } else if (/^http:\/\/www\.nicovideo\.jp\/watch\/([-\w]+)$/.test(all)){
+ } else if (/^http:\/\/[^.]+\.nicovideo\.jp\/watch\/([-\w]+)$/.test(all)){
str = '<iframe width="312" height="176" src="http://ext.nicovideo.jp/thumb/'+RegExp.$1 + '" scrolling="no">'+
'<a href="' + all + '">' +all+'</a></iframe>';
} else if (all.charAt(0) == "["){