From 592a5c798d464f097e4ea308eb90cd1df04990d5 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 7 Sep 2011 15:33:02 +0900 Subject: S.post.root 修正 --- google-plus-commando.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'google-plus-commando.js') 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 = <> - 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) }, -- cgit v1.2.3