diff options
| author | anekos | 2011-08-16 13:45:23 +0900 | 
|---|---|---|
| committer | anekos | 2011-08-16 13:46:21 +0900 | 
| commit | 6366343eaf8f0569428ccffdccaab0e36b74310e (patch) | |
| tree | f11735779679223d851fac4af8628f489440005d | |
| parent | 37c67349774da66bf44c1c99b2c0fe1debff1b4a (diff) | |
| download | vimperator-plugins-6366343eaf8f0569428ccffdccaab0e36b74310e.tar.bz2 | |
Follow G+ changes
| -rw-r--r-- | google-plus-commando.js | 21 | 
1 files changed, 12 insertions, 9 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index 2780a80..e996d7b 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -180,15 +180,17 @@ let g:gplus_commando_map_menu            = "m"      let selector = {        role: role, -      typePlusone: '[g\\:type="plusone"]', +      typePlusone: '[g\\:entity^="buzz:"]',        editable: '.editable', +      plusoneSpan: '.Rk.yE', +        currentEntry: {          root: '.tf.Ek.Lj',          unfold: [ -          role('button', '.d-k.Dk'),  // 発言の省略 (以前) -          role('button', '.d-k.Ck'),  // 発言の省略 (以降) -          role('button', '.d-k.Wk')   // 投稿の省略 ("このコメントを展開 »") +          role('button', '.d-k.Dk'),      // 発言の省略 (以前) +          role('button', '.d-k.Ck'),      // 発言の省略 (以降) +          role('button', '.d-k.Kq.Sy'),   // 投稿の省略 ("このコメントを展開 »")          ],          menu: {            mute: '.a-Y-k.a-Y-k-ye.d-V.Ki.Sl' @@ -216,9 +218,9 @@ let g:gplus_commando_map_menu            = "m"            root: 'iframe[src*="/_/notifications/"]',            summary: {              root: '#summary-view', -            prev: '.a-c-A-lb-bh',         // @title = 前のお知らせ -            next: '.a-c-A-lb-jg',         // @title = 次のお知らせ -            back: '.a-c-A-lb-Yo.d-k.TA'   // @title = お知らせに戻る +            prev: '.d-k.dKMHhf',         // @title = 前のお知らせ +            next: '.d-k.THfuvd',         // @title = 次のお知らせ +            back: '.d-k.ZzNjme.TA'       // @title = お知らせに戻る            },            entry: {              entries: 'div[id^=":2."]',   // :2.diz13l.... @@ -821,7 +823,7 @@ let g:gplus_commando_map_menu            = "m"              elem.dispatchEvent(evt);            } -          let plusone = elem.getAttribute('g:type') === 'plusone'; +          let plusone = elem.getAttribute('g:entity').indexOf('buzz:') === 0;            if (plusone)              mouseEvent('mouseover');            action(elem, count); @@ -848,7 +850,8 @@ let g:gplus_commando_map_menu            = "m"              break;            } -          styles.addSheet(false, HintStyleName, 'plus\\.google\\.com', '.a-b-f-W-Tj.a-f-W-Tj { display: inline  !important }'); +          styles.addSheet(false, HintStyleName, 'plus\\.google\\.com', S.plusoneSpan + '{ display: inline  !important }'); +          liberator.log('hoge')            return xpath.map(function (it) (/^id\(/.test(it) ? it : '//' + it)).join(' | ');          }  | 
