From c62d26557a4470d4090ffe4b097d06b4f207a63e Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 3 Aug 2011 16:53:15 +0900 Subject: G+ へんこうたいおう --- google-plus-commando.js | 56 +++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/google-plus-commando.js b/google-plus-commando.js index c5bf78e..029cfbe 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -36,7 +36,7 @@ THE POSSIBILITY OF SUCH DAMAGE. // INFO {{{ let INFO = <> - [id$=".{name}"])); @@ -288,18 +283,19 @@ let g:gplus_commando_map_menu = "m" }; } + // 新しく投稿 function get2 () { function button (editor, index) { let result = editor.querySelectorAll('td > ' + S.role('button'))[index]; if (result) return result; if (index === 1) - return editor.querySelector('.om[id$=".c"]'); + return editor.querySelector(S.post.cancel); } const indexes = {submit: 0, cancel: 1}; - let editors = A(doc.querySelectorAll('.n')).filter(hasIFrame); + let editors = A(doc.querySelectorAll(S.post.root)).filter(hasIFrame); if (editors.length === 0) return; if (editors.length > 1) @@ -779,8 +775,8 @@ let g:gplus_commando_map_menu = "m" 'span[@role="button"]', 'div[@role="button"]', 'div[@data-content-type]', - 'img[contains(@class,"ea-g-Vc-pa")]', - 'div[contains(@class,"a-z-nb-A")]' + 'img[contains(@class,"P-g-ie-ma")]', // /photos の写真 + //FIXME 'div[contains(@class,"a-z-nb-A")]' ]; const roots = [ -- cgit v1.2.3