diff options
author | anekos | 2010-06-05 15:19:43 +0000 |
---|---|---|
committer | anekos | 2010-06-05 15:19:43 +0000 |
commit | 0b24d324809ed06bd642934031aef27d2cbe1a87 (patch) | |
tree | 373c45d1df33a97d845e13b196e383f657c4bfbb | |
parent | e0b5fcf6713094d4424287fb39f6d76c220933ea (diff) | |
download | vimperator-plugins-0b24d324809ed06bd642934031aef27d2cbe1a87.tar.bz2 |
translateThreadButton修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37806 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | gmail-commando.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gmail-commando.js b/gmail-commando.js index b3980bf..a8b33ca 100755 --- a/gmail-commando.js +++ b/gmail-commando.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">GMail コマンドー</name> <description>The handy commands for GMail</description> <description lang="ja">便利なGMail用コマンドー</description> - <version>1.3.6</version> + <version>1.3.7</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -57,7 +57,7 @@ let PLUGIN_INFO = // INFO {{{ let INFO = <> - <plugin name="GMailCommando" version="1.3.6" + <plugin name="GMailCommando" version="1.3.7" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/gmail-commando.js" summary="The handy commands for GMail" lang="en-US" @@ -94,7 +94,7 @@ let INFO = </description> </item> </plugin> - <plugin name="GMailコマンドー" version="1.3.6" + <plugin name="GMailコマンドー" version="1.3.7" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/gmail-commando.js" summary="便利なGMail用コマンドー" lang="ja" @@ -248,16 +248,18 @@ let INFO = get translateButton () (this.mail && this.mail.querySelector('tr > td.SA > .iL.B9')), get translateButtons () A(this.doc.querySelectorAll('tr > td.SA > .iL.B9')), - get translateThreadButton () this.doc.querySelector('#\\:27'), - get mail () let (es = this.mails.filter(function (it) !it.querySelector('.hF.hH > img.hG'))) (es.length && es[0]), get mails () A(this.doc.querySelectorAll('.h7')), + get threadButtons () this.doc.querySelectorAll('div.hk > span > u'), + + get translateThreadButton () this.threadButtons[5], + // XXX 毎度 ID が変わるっぽいので、u から選択 - get foldButton () this.doc.querySelectorAll('div.hk > span > u')[3], - get unfoldButton () this.doc.querySelectorAll('div.hk > span > u')[2], + get foldButton () this.threadButtons[3], + get unfoldButton () this.threadButtons[2], }; @@ -404,6 +406,7 @@ let INFO = }); __context__.command = Commands; + __context__.element = Elements; })(); |