From c4e650df873fda6b9bffb6579226c2e9610c6da5 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 17 Jul 2011 10:35:43 +0900 Subject: sq --- google-plus-commando.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/google-plus-commando.js b/google-plus-commando.js index 06e1620..0baadd6 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -489,6 +489,9 @@ let INFO = const HintStyleName = 'google-plus-commando-hint'; + function s2x (s) + s.replace(/^\./, ''); + [ ['o', 'f', function (e) click(e)], ['t', 'F', function (e) buffer.followLink(e, liberator.NEW_TAB)], @@ -529,8 +532,8 @@ let INFO = for (let [, name] in Iterator(['viewer', 'dialog'])) { if (!Elements[name]) continue; - xpath.push(String(<>div[contains(@class, "{C.closeButton}")])); - xpath = xpath.map(function (it) String(<>*[contains(@class, "{C[name].root}")]//{it})) + xpath.push(String(<>div[contains(@class, "{s2x(S.closeButton)}")])); + xpath = xpath.map(function (it) String(<>*[contains(@class, "{s2x(S[name].root)}")]//{it})) break; } -- cgit v1.2.3