diff options
author | anekos | 2011-07-17 10:35:43 +0900 |
---|---|---|
committer | anekos | 2011-07-17 10:35:43 +0900 |
commit | c4e650df873fda6b9bffb6579226c2e9610c6da5 (patch) | |
tree | da12004bbc5c5db75aebebfcd3bd713bcaf0a078 /google-plus-commando.js | |
parent | e5856e244028333739da73bd4ce3f598042ea257 (diff) | |
download | vimperator-plugins-c4e650df873fda6b9bffb6579226c2e9610c6da5.tar.bz2 |
sq
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r-- | google-plus-commando.js | 7 |
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; } |