aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2011-10-18 22:39:08 +0900
committeranekos2011-10-18 22:39:44 +0900
commit9d151869ff33e44f88864d6d1fa9578b8d205d50 (patch)
tree0cbfb40ae9fef87e41e8f120c01b868e3cdb2f90
parent493136e91520e45a74bc7a2a5b5a2b16a9271a47 (diff)
downloadvimperator-plugins-9d151869ff33e44f88864d6d1fa9578b8d205d50.tar.bz2
iframe な YouTube 埋め込み対応
-rw-r--r--hints-for-embedded.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/hints-for-embedded.js b/hints-for-embedded.js
index 5ba9c2e..1c90412 100644
--- a/hints-for-embedded.js
+++ b/hints-for-embedded.js
@@ -35,7 +35,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
// INFO {{{
let INFO =
<>
- <plugin name="HintsForEmbeded" version="1.4.1"
+ <plugin name="HintsForEmbeded" version="1.5.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/hints-for-embedded.js"
summary="Add the hints mode for embedded objects."
lang="en-US"
@@ -79,7 +79,7 @@ let INFO =
</description>
</item>
</plugin>
- <plugin name="HintsForEmbeded" version="1.4.1"
+ <plugin name="HintsForEmbeded" version="1.5.0"
href="http://github.com/vimpr/vimperator-plugins/blob/master/hints-for-embedded.js"
summary="埋め込み(embed)オブジェクト用ヒントモード"
lang="ja"
@@ -147,6 +147,12 @@ let INFO =
value: /(?:v|wv_id)=([a-z]{2}\d{1,10})/,
url: function (id) ('http://www.nicovideo.jp/watch/' + id)
},
+ youtube_iframe: {
+ site: /youtube/,
+ name: /^src$/,
+ value: /http:\/\/www\.youtube\.com\/embed\/(.+)/,
+ url: function (id) ('http://www.youtube.com/watch?v=' + id)
+ },
youtube: {
site: /youtube/,
name: /.*/,
@@ -233,7 +239,7 @@ let INFO =
function (elem) {
liberator.open(open(elem), where);
},
- function () '//embed | //object | //img'
+ function () '//embed | //object | //img | //iframe'
);
commands.addUserCommand(