diff options
author | anekos | 2008-12-09 11:39:06 +0000 |
---|---|---|
committer | anekos | 2008-12-09 11:39:06 +0000 |
commit | 6de3fa6a8a6777c30f6b8e5ae4180c091995acd9 (patch) | |
tree | 66fced939b2b3d127eaf2f00279d945b89265734 | |
parent | 91953a2e1ef9e52fa448f9956a34375e5e47bb1d (diff) | |
download | vimperator-plugins-6de3fa6a8a6777c30f6b8e5ae4180c091995acd9.tar.bz2 |
吠えるようにした。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26223 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | happy_hacking_vimperator.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/happy_hacking_vimperator.js b/happy_hacking_vimperator.js index 9a59da0..47b1c5b 100644 --- a/happy_hacking_vimperator.js +++ b/happy_hacking_vimperator.js @@ -24,6 +24,8 @@ http://creativecommons.org/licenses/by-sa/3.0/ let enabled = s2b(liberator.globalVariables.happy_hacking_vimperator_enable, true); let ignore = false; let mousedownTime = new Date(); + let sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound); + sound.init(); let meows = [ // mouse kara @@ -141,8 +143,10 @@ http://creativecommons.org/licenses/by-sa/3.0/ return; event.preventDefault(); event.stopPropagation(); - if (msg) + if (msg) { fuck(shit()); + sound.play(makeURI('http://www.kurinton.net/~snca/files/meow.wav')); + } } } |