From 7ac47a5cf60586573836b094de2df443bd538bc1 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 5 Dec 2008 17:11:58 +0000 Subject: buffer.followLink を使うようにしてみる git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25977 d0d07461-0603-4401-acd4-de1884942a52 --- auto_detect_link.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'auto_detect_link.js') 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などの表示 -- cgit v1.2.3