aboutsummaryrefslogtreecommitdiffstats
path: root/happy_hacking_vimperator.js
diff options
context:
space:
mode:
authoranekos2008-12-08 11:59:55 +0000
committeranekos2008-12-08 11:59:55 +0000
commitce1f3db71f5e7e4c854dcfe733a2f4929d0c43f1 (patch)
tree460563712408af4f00bbc0331c8b6c47638a40fc /happy_hacking_vimperator.js
parent67f133def113c44f0106e961883d10d47723959d (diff)
downloadvimperator-plugins-ce1f3db71f5e7e4c854dcfe733a2f4929d0c43f1.tar.bz2
フラッシュ系はクリックできるように。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26124 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'happy_hacking_vimperator.js')
-rw-r--r--happy_hacking_vimperator.js10
1 files changed, 3 insertions, 7 deletions
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, ''));