diff options
author | anekos | 2011-09-07 15:33:02 +0900 |
---|---|---|
committer | anekos | 2011-09-07 15:33:02 +0900 |
commit | 592a5c798d464f097e4ea308eb90cd1df04990d5 (patch) | |
tree | 8dd336c5803b81f627a0f6210ff996d82c289b88 /google-plus-commando.js | |
parent | 9344b1c10e4a86712af92cef6adad9971f62a719 (diff) | |
download | vimperator-plugins-592a5c798d464f097e4ea308eb90cd1df04990d5.tar.bz2 |
S.post.root 修正
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r-- | google-plus-commando.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index c794565..7d54052 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.4.0" + <plugin name="GooglePlusCommando" version="2.4.1" href="http://github.com/vimpr/vimperator-plugins/blob/master/google-plus-commando.js" summary="The handy commands for Google+" lang="en-US" @@ -414,14 +414,11 @@ let g:gplus_commando_map_menu = "m" submit: role('button', '[id$=".post"]'), }, post: { - root: '#contentPane > div > div > div[decorated="true"]', - /*function () { - return getSelectorFind( - Elements.doc, - 'div', - function (e) /this\.className/.test(e.getAttribute('onclick')) - ); - },*/ + root: function () { + let div = cssRules.find(/\{ margin-left: 21px; margin-right: 21px; margin-top: 10px; width: 532px; \}/); + return '#contentPane ' + 'div[decorated="true"]' + div; + // onclick の this.className += ' f-Sa' は初めは存在しないっぽい + }, open: cssRules.finder(/opacity 0.125s ease 0.125s/), cancel: 'div[id$=".c"]', // :6w.c }, @@ -484,6 +481,7 @@ let g:gplus_commando_map_menu = "m" get doc() content.document, get currentEntry () MakeElement(Entry, Elements.doc.querySelector(S.currentEntry.root)), post: { + get root () Elements.doc.querySelector(S.post.root), get cancel () Elements.doc.querySelector(S.post.cancel), get open () Elements.doc.querySelector(S.post.open) }, |