diff options
author | anekos | 2008-12-05 17:11:58 +0000 |
---|---|---|
committer | anekos | 2008-12-05 17:11:58 +0000 |
commit | 7ac47a5cf60586573836b094de2df443bd538bc1 (patch) | |
tree | ba19cd146fe8d75320cf93d9ce9933c08e974c4c /auto_detect_link.js | |
parent | 5662555143aa7bb0a1f424a1c71bb2e9b030048b (diff) | |
download | vimperator-plugins-7ac47a5cf60586573836b094de2df443bd538bc1.tar.bz2 |
buffer.followLink を使うようにしてみる
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25977 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_detect_link.js')
-rw-r--r-- | auto_detect_link.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/auto_detect_link.js b/auto_detect_link.js index b6fdb8f..263b1f6 100644 --- a/auto_detect_link.js +++ b/auto_detect_link.js @@ -2,7 +2,7 @@ // @name Auto Detect Link // @description-ja (次|前)っぽいページへのリンクを探してジャンプ // @license Creative Commons 2.1 (Attribution + Share Alike) -// @version 1.4 +// @version 1.5 // @author anekos (anekos@snca.net) // ==/VimperatorPlugin== // @@ -165,11 +165,8 @@ // 要素をクリックする - function clickElement (elem) { - var e = content.document.createEvent('MouseEvents'); - e.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); - elem.dispatchEvent(e); - } + function clickElement (elem) + buffer.followLink(elem); // 開いたURIなどの表示 |