diff options
author | anekos | 2011-08-05 00:03:32 +0900 |
---|---|---|
committer | anekos | 2011-08-05 00:03:32 +0900 |
commit | 497bed332c3fc0bbdb8b5a4fd9c73bc11fec0287 (patch) | |
tree | 1fbecd201ad65b5bb23af1d7675c04887f13c4f0 /google-plus-commando.js | |
parent | ad365c8fcb1dfde41ad028595516ce8f0ddfc175 (diff) | |
download | vimperator-plugins-497bed332c3fc0bbdb8b5a4fd9c73bc11fec0287.tar.bz2 |
YouTube などはその場で開かないようにする
他のを開いたときに、閉じたはずの動画を再生するバグなどがあるため。
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r-- | google-plus-commando.js | 9 |
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'); |