From 5049f86bfddd7ef18f58efef9e0c60d16376126b Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 7 Sep 2011 15:17:09 +0900 Subject: 投稿の展開をできるようにしたんだ。 --- google-plus-commando.js | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'google-plus-commando.js') diff --git a/google-plus-commando.js b/google-plus-commando.js index 3f70c2c..9fd1411 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -36,7 +36,7 @@ THE POSSIBILITY OF SUCH DAMAGE. // INFO {{{ let INFO = <> - div > ' + b)).join(', '); + } + }, menu: { mute: '----' }, @@ -651,8 +672,10 @@ let g:gplus_commando_map_menu = "m" for ([, e] in Iterator(A(root.querySelectorAll('a')))) if (!e.getAttribute('oid')) ][0], - get unfold () self.unfolds[0], - get unfolds () A(root.querySelectorAll(S.currentEntry.unfold)).filter(isDisplayed), + unfold: { + comment: root.querySelector(S.currentEntry.unfold.comment), + content: root.querySelector(S.currentEntry.unfold.content) + }, get buttons () A(self.plusone.parentNode.querySelectorAll(S.role('button'))), get commentButton () self.buttons[0], get commentEditor () let (e = root.querySelector(S.editable)) (e && e.parentNode), @@ -902,7 +925,8 @@ let g:gplus_commando_map_menu = "m" if (notifications && notifications.visible && notifications.entry.visible) return click(notifications.entry.unfold); - clicks(Elements.currentEntry.unfolds); + click(Elements.currentEntry.unfold.comment); + click(Elements.currentEntry.unfold.content); }, menu: function () { click(Elements.currentEntry.menuButton); -- cgit v1.2.3