From b0ca37783fae2cfc32020dbe7c13ee919cdb0b13 Mon Sep 17 00:00:00 2001 From: drry Date: Fri, 9 May 2008 20:27:53 +0000 Subject: * fixed XPaths. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11316 d0d07461-0603-4401-acd4-de1884942a52 --- gvimail.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'gvimail.js') diff --git a/gvimail.js b/gvimail.js index e23d5b8..2dce8be 100644 --- a/gvimail.js +++ b/gvimail.js @@ -48,7 +48,7 @@ /// or a part of the src attribute of the img element (for Gmail v1) clickImage : function (classnamev2, imgsrcv1) { - var elem = viberator.buffer.evaluateXPath('//*[contains(concat(" ", normalize-space(@class), " "), " '+classnamev2+' ")] | //img[contains(@src, "'+imgsrcv1+'")]', GViMail.getMainCanvas().contentDocument, null, true).iterateNext(); + var elem = viberator.buffer.evaluateXPath('//*[contains(concat(" ", @class, " "), " '+classnamev2+' ")] | //img[contains(@src, "'+imgsrcv1+'")]', GViMail.getMainCanvas().contentDocument, null, true).iterateNext(); // hmm, the code below generates a log: Invalid argument for followLink. viberator.buffer.followLink(elem, viberator.CURRENT_TAB); }, @@ -93,14 +93,14 @@ var gmail_v2_hinttags = + " | //span[@role='link']" // Refresh, Back to "label", Reply to all, Forward, Filter messages like this, ... // You could just use //div[@act] here, but there appears 4 unwanted hints when first-viewing a message - + " | //div[@act][not(ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' zWKgkf ')]) or (ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' zWKgkf ') and contains(@style, 'visibility')])]" + + " | //div[@act][not(ancestor::div[contains(concat(' ', @class, ' '), ' zWKgkf ')]) or (ancestor::div[contains(concat(' ', @class, ' '), ' zWKgkf ') and contains(@style, 'visibility')])]" // More actions, Toolbar buttons on RTE (don't use RTE, plain ascii mails are sexier) + " | //*[@unselectable='on']" // Fold and UnFold messages in thread that has an excerpt displayed in grey - + " | //div[contains(concat(' ', normalize-space(@class), ' '), ' IUCKJe ')]" + + " | //div[contains(concat(' ', @class, ' '), ' IUCKJe ')]" // UnFold messages in thread when no excerpt is displayed (blank line) // Such