aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgmail-commando.js17
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;
})();