[Vimperator] Vimperator on Gmail: How to enable hint on useful clickable items.

Daniel Bainton dpb at driftaway.org
Mon Mar 10 04:35:05 PDT 2008


On 10/03/2008, mahefa randimbisoa <mahefa.randimbisoa at gmail.com> wrote:
> Vimperator seemed to be useless on Gmail (the js version), as useful
>  items (that need to be clicked) don't use neither the a tag, nor on...
>  attribute. I couldn't access the tags
>  Adding
>  or @class='rr' or @class='lk cs' or @class='msc'
>  helped me much.
>  This is how I managed to make those items reachable by hinttags.
>
>  1) Ctrl+Shift+I to open DOM Inspector
>  2) On the DOM Inspector, click the "Find a node" button (in my French
>  version, Ctrl+R)
>  3) Back to the Gmail page, click on the item that has no hinttags.
>  4) Back again to DOM Inspector, The clicked item is highlighted.
>  5) Go to the parent node of the clicked item, right click, Copy code
>  (French: Copier le code de l'élement)
>  6) Paste to vim and analyze this code. Then, you'll be able to guess
>  how to insert it into the hittags XPath.
>
>  Below is the command I use to add 3 classes to hinttags. Didn't have
>  time to make it as a plugin but I'll try.
>
>  se hinttags=//*[@onclick or @onmouseover or @onmousedown or @onmouseup
>  or @oncommand or @class='lk' or @class='s' or @class='rr' or
>  @class='lk cs' or @class='msc'] | //input[not(@type='hidden')] | //a |
>  //area | //iframe | //textarea | //button | //select |
>  //xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or
>  @oncommand or @class='lk' or @class='s'] |
>  //xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area |
>  //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select
>
>  Note that @class='lk' doesn't work with something like
>  <DIV class="lk cs">
>  so, I had to write it as @class="lk cs". It is not a good solution, if
>  Gmail simply invert the 2 classes or add another class, the hint will
>  stop working again. I'm newbie to XPATH (and even to javascript), I
>  don't know if there is a simpler expression to say
>  "A tag that has the class attribute, and the value of this class
>  attribute is lk, or begins with lk and a space, or ends with a space
>  followed by lk, or has the characters space/lk/space."
>
>  Hope this helps someone, like me, who loves vimperator and Gmail.

I can't get this to fully work. Makes hints available for the labels
(and they work), and does SHOW the hints for the emails too, but
actually pressing the hints just select the email, they don't show
them.

--
Daniel


More information about the Vimperator mailing list