aboutsummaryrefslogtreecommitdiffstats
path: root/auto_detect_link.js
diff options
context:
space:
mode:
Diffstat (limited to 'auto_detect_link.js')
-rw-r--r--auto_detect_link.js9
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などの表示