aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
authoranekos2011-07-17 10:35:43 +0900
committeranekos2011-07-17 10:35:43 +0900
commitc4e650df873fda6b9bffb6579226c2e9610c6da5 (patch)
treeda12004bbc5c5db75aebebfcd3bd713bcaf0a078 /google-plus-commando.js
parente5856e244028333739da73bd4ce3f598042ea257 (diff)
downloadvimperator-plugins-c4e650df873fda6b9bffb6579226c2e9610c6da5.tar.bz2
sq
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js7
1 files 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;
}