aboutsummaryrefslogtreecommitdiffstats
path: root/gmail-commando.js
diff options
context:
space:
mode:
authoranekos2011-06-06 03:38:09 +0900
committeranekos2011-06-06 03:38:27 +0900
commit2b37218f86e9e0e8fabe3dfe35dd86ea7a0757bb (patch)
treed29d8cc9f0ac0dbf7c62c376b99ae27131a3f06d /gmail-commando.js
parent30da375c3b825ee6d5b8ebd74247bd44cda1688f (diff)
downloadvimperator-plugins-2b37218f86e9e0e8fabe3dfe35dd86ea7a0757bb.tar.bz2
Follow buzz
Diffstat (limited to 'gmail-commando.js')
-rw-r--r--gmail-commando.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/gmail-commando.js b/gmail-commando.js
index 9e437b1..8874567 100644
--- a/gmail-commando.js
+++ b/gmail-commando.js
@@ -35,7 +35,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
// INFO {{{
let INFO =
<>
- <plugin name="GMailCommando" version="1.4.6"
+ <plugin name="GMailCommando" version="1.4.7"
href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/gmail-commando.js"
summary="The handy commands for GMail"
lang="en-US"
@@ -72,7 +72,7 @@ let INFO =
</description>
</item>
</plugin>
- <plugin name="GMailコマンドー" version="1.4.6"
+ <plugin name="GMailコマンドー" version="1.4.7"
href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/gmail-commando.js"
summary="便利なGMail用コマンドー"
lang="ja"
@@ -229,12 +229,14 @@ let INFO =
const Elements = {
get doc() content.frames[3].document,
+ get hasBuzz () !!this.doc.querySelector('input#\\:re'),
+
get labels() A(this.doc.querySelectorAll('a.n0')).filter(function (it) (/#label/(it.href))),
- // 入力欄 - input
- get input() this.doc.getElementById(':rf'),
+ // 入力欄 と 検索ボタンは Buzz の有効無効によって ID が変わる
+ get input() this.doc.querySelector('input#\\:' + (this.hasBuzz ? 're' : 'rf')),
- get searchButton() this.doc.getElementById(':rj'),
+ get searchButton() this.doc.querySelector('div#\\:' + (this.hasBuzz ? 'ri' : 'rj')),
get translateButton () (this.mail && this.mail.querySelector('tr > td.SA > .iL.B9')),
get translateButtons () A(this.doc.querySelectorAll('tr > td.SA > .iL.B9')),