aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
authoranekos2011-08-05 00:03:32 +0900
committeranekos2011-08-05 00:03:32 +0900
commit497bed332c3fc0bbdb8b5a4fd9c73bc11fec0287 (patch)
tree1fbecd201ad65b5bb23af1d7675c04887f13c4f0 /google-plus-commando.js
parentad365c8fcb1dfde41ad028595516ce8f0ddfc175 (diff)
downloadvimperator-plugins-497bed332c3fc0bbdb8b5a4fd9c73bc11fec0287.tar.bz2
YouTube などはその場で開かないようにする
他のを開いたときに、閉じたはずの動画を再生するバグなどがあるため。
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index b14c644..2780a80 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -36,7 +36,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
// INFO {{{
let INFO =
<>
- <plugin name="GooglePlusCommando" version="2.1.1"
+ <plugin name="GooglePlusCommando" version="2.1.2"
href="http://github.com/vimpr/vimperator-plugins/blob/master/google-plus-commando.js"
summary="The handy commands for Google+"
lang="en-US"
@@ -717,10 +717,11 @@ let g:gplus_commando_map_menu = "m"
let dct = ce.root.querySelector('div[data-content-type]');
if (dct) {
- let links = dct.parentNode.querySelectorAll('a');
- if (links.length < 1)
+ if (!/application\/x-shockwave-flash/.test(dct.getAttribute('data-content-type')))
return click(dct);
- return clicks(links);
+
+ let links = dct.parentNode.querySelectorAll('a');
+ return clicks(links);
}
let links = ce.root.querySelectorAll('a.ot-anchor');