aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
authoranekos2011-08-03 01:47:49 +0900
committeranekos2011-08-03 01:47:49 +0900
commit09ccd18348c6c37870d0b947288f6f8f456d6601 (patch)
treeae7b2f64075079d517a4d0c0fd50dd366ed30a29 /google-plus-commando.js
parent3cbd3c7cdd2dec30d25fe02a7db87fc3f86c7ad9 (diff)
downloadvimperator-plugins-09ccd18348c6c37870d0b947288f6f8f456d6601.tar.bz2
通知の各エントリが表示されているとき状態に [mute] を対応
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index a649560..c5bf78e 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.0.3"
+ <plugin name="GooglePlusCommando" version="2.0.5"
href="http://github.com/vimpr/vimperator-plugins/blob/master/google-plus-commando.js"
summary="The handy commands for Google+"
lang="en-US"
@@ -222,7 +222,8 @@ let g:gplus_commando_map_menu = "m"
},
entry: {
entries: '.JEfY2c.a-b-l-fa-xf-df[id^=":2."]',
- comment: role('button', '.a-b-f-i-W-O.a-f-i-W-O')
+ comment: role('button', '.a-b-f-i-W-O.a-f-i-W-O'),
+ mute: role('button', '.a-b-l-fa-Fb.OeDM2c.uOW2Oe.d-h')
},
}
},
@@ -477,6 +478,7 @@ let g:gplus_commando_map_menu = "m"
get next () root.contentDocument.querySelector(S.frames.notifications.summary.next),
get back () root.contentDocument.querySelector(S.frames.notifications.summary.back),
get comment () self.entry.current.querySelector(S.frames.notifications.entry.comment),
+ get mute () self.entry.current.querySelector(S.frames.notifications.entry.mute),
get unfold () root.contentDocument.querySelector(S.currentEntry.unfold.join(', '))
}
};
@@ -666,6 +668,9 @@ let g:gplus_commando_map_menu = "m"
click(Elements.currentEntry.menuButton);
},
mute: function () {
+ let notifications = Elements.frames.notifications;
+ if (notifications && notifications.visible && notifications.entry.visible)
+ return click(notifications.entry.mute);
click(Elements.currentEntry.menu.mute);
}
};