aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-05-04 10:46:53 +0000
committeranekos2010-05-04 10:46:53 +0000
commit03db0fc10c42758d78af14ac8d5752e2f9f3ab2c (patch)
tree653ec005364cc1a1b2fd7b9542e4bbce36e2a5f4 /stella.js
parent9dbb5441aecec0b6b757f0044ea97c10671355e9 (diff)
downloadvimperator-plugins-03db0fc10c42758d78af14ac8d5752e2f9f3ab2c.tar.bz2
YouTube のタグURL生成を追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37363 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/stella.js b/stella.js
index accc881..fafe3cb 100644
--- a/stella.js
+++ b/stella.js
@@ -984,6 +984,8 @@ Thanks:
switch (type) {
case Player.URL_ID:
return 'http://www.youtube.com/watch?v=' + value + '&fmt=22'; //XXX さりげなく高画質に!
+ case Player.URL_TAG:
+ return 'http://www.youtube.com/results?search=tag&search_query=' + encodeURIComponent(value);
case Player.URL_SEARCH:
return 'http://www.youtube.com/results?search_query=' + encodeURIComponent(value);
}