From 47ec0ddbce06ce239a64d50613beb7428394cfc5 Mon Sep 17 00:00:00 2001 From: drry Date: Sun, 20 Apr 2008 16:31:40 +0000 Subject: lang/javascript/vimperator-plugins/trunk/gvimail.js: * fixed the XPath. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10029 d0d07461-0603-4401-acd4-de1884942a52 --- gvimail.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gvimail.js') diff --git a/gvimail.js b/gvimail.js index 2e9388f..33e7b27 100644 --- a/gvimail.js +++ b/gvimail.js @@ -23,7 +23,7 @@ var use_gmail_v2 = true; // If you have installed stylechanger.js and want to use the Vimish style, set the option below to true. // If you didn't yet get the gvimail.css, download it from http://code.google.com/p/gvimail/source/browse/trunk/colors/GVimail.css - // and put it in ~/.vimperator/colors (or %HOMEPATH\vimperator\colors). + // and put it in ~/.vimperator/colors (or %HOMEPATH\vimperator\colors) var use_gvimail_css = true; // for compatibility with all versions of Vimperator >= 0.6pre, @@ -45,7 +45,7 @@ return null; }, /// Execute an action by simulating a click on an image. It has 2 params: the classname (for Gmail v2) - /// or a part of the src attribute of the img element (for Gmail v1). + /// 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(); @@ -129,8 +129,8 @@ var gmail_v2_hinttags = // Show|Hide quoted text + " | //span[contains(concat(' ', normalize-space(@class), ' '), ' WQ9l9c ')]" // - + " | //div[contains(concat(' ', normalize-space(@class), ' '), ' goog-menuitem')]"; -// We provide limited support for Gmail(v1). + + " | //div[contains(concat(' ', normalize-space(@class)), ' goog-menuitem')]"; +// We provide limited support for Gmail(v1) var gmail_v1_hinttags = "//*[contains(@class, 'lk ') or @class='msc' or @class='ll' or @class='setl' or @class='lkw' or starts-with(@class, 'sc ')] | //tr[@class='rr' or @class='ur']/td[position()=5] | //div/span[contains(@class, 'bz_rbbb')] | //span[@class='l' and contains(@id, 'sl_')]" ; var gmail_hints = use_gmail_v1 ? gmail_v1_hinttags : ""; -- cgit v1.2.3