diff options
| author | anekos | 2011-07-14 05:17:05 +0900 | 
|---|---|---|
| committer | anekos | 2011-07-14 05:17:05 +0900 | 
| commit | 630cbd12644ea988c1f047352222de915e3a514e (patch) | |
| tree | eb60ef2f079d73130104a7b02e44a0afb39d532d | |
| parent | aa06d31fbe5cf51ad72aed1abc1d99a8b9a7477c (diff) | |
| download | vimperator-plugins-630cbd12644ea988c1f047352222de915e3a514e.tar.bz2 | |
unfold マッピング追加、省略されたものを展開する
| -rw-r--r-- | google-plus-commando.js | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index 8aac69b..50b6073 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -126,6 +126,7 @@ let INFO =          for ([, e] in Iterator(A(root.querySelectorAll('a'))))          if (!e.getAttribute('oid'))        ][0], +      get unfold () root.querySelector('.a-b-f-i-gc-cf-Xb-h[role="button"]'),        get buttons () A(self.plusone.parentNode.querySelectorAll('[role="button"]')),        get commentButton () self.buttons[0],        get commentEditor () let (e = root.querySelector('.editable')) (e && e.parentNode), @@ -212,11 +213,14 @@ let INFO =          if (e && e.submit)            return click(e.submit);        } +    }, +    unfold: function () { +      click(Elements.currentEntry.unfold);      }    }; -  'comment plusone share next prev post yank notification cancel submit'.split(/\s/).forEach(function (cmd) { +  'comment plusone share next prev post yank notification cancel submit unfold'.split(/\s/).forEach(function (cmd) {      let gv =        liberator.globalVariables[          'gplus_commando_map_' +  | 
