From ce1f3db71f5e7e4c854dcfe733a2f4929d0c43f1 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 8 Dec 2008 11:59:55 +0000 Subject: フラッシュ系はクリックできるように。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26124 d0d07461-0603-4401-acd4-de1884942a52 --- happy_hacking_vimperator.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'happy_hacking_vimperator.js') diff --git a/happy_hacking_vimperator.js b/happy_hacking_vimperator.js index 6efeda9..640d431 100644 --- a/happy_hacking_vimperator.js +++ b/happy_hacking_vimperator.js @@ -137,7 +137,7 @@ http://creativecommons.org/licenses/by-sa/3.0/ function kill (msg) { return function (event) { - if (ignore) + if (ignore || !damn(event)) return; event.preventDefault(); event.stopPropagation(); @@ -146,12 +146,8 @@ http://creativecommons.org/licenses/by-sa/3.0/ } } - if (liberator.plugins.happy_hacking_vimperator) { - meows.forEach(fuck); - return; - } else { - liberator.plugins.happy_hacking_vimperator = 'Happy Hacking!'; - } + function damn (event) + !/^(script|embed)$/i.test(event.target.tagName); let (opt = options.get('go')) opt.set(opt.get().replace(/[rlb]/g, '')); -- cgit v1.2.3