vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Issue in https://web.whatsapp.com/

Open meain opened this issue 8 years ago • 10 comments

Whatsapp.

Unable to enter into a chat using the command 'f', only some links are shown, none of chats though. Cannot exit out of the bottom textfield in the chat using 'Esc' key

meain avatar Feb 04 '16 17:02 meain

I noticed that too. Not only on whatsapp, but on some websites, js links are not reachable using the 'f' key.

BlitzKraft avatar Feb 06 '16 13:02 BlitzKraft

is there any workaround for getting rid of having to use the mouse in these cases?

Sanmoo avatar Mar 11 '16 23:03 Sanmoo

There are two things causing this...

  1. The element has a tabindex of -1, which we're excluding for some reason.
  2. Nevertheless - and unfortunately - if we remove the condition above and "simulate click" the element, then it doesn't seem to respond anyway.

#1859 doesn't seem to find the clickable element either.

smblott-github avatar Mar 12 '16 09:03 smblott-github

The element has a tabindex of -1, which we're excluding for some reason.

Specifically, we're excluding it because it doesn't make an element respond to clicks, whereas a non-negative tabindex does.

I'm at work so I can't check, but are there any non-site-specific features that distinguish the clickable elements from the others?

mrmr1993 avatar Mar 12 '16 12:03 mrmr1993

are there any non-site-specific features that distinguish the clickable elements from the others?

Looks like they're using React, but you better look yourself.

smblott-github avatar Mar 12 '16 12:03 smblott-github

I know this is an old issue, but it's still happening. Is there anything that can be done other than not using whatsapp web?

donotnoot avatar Sep 28 '18 12:09 donotnoot

The only thing that I found to work is pressing <TAB> twice instead of <ESC> from the input box. The first tab takes the cursor to the chat search box and the second one takes it to the window where there is a list of all chats. All the commands work there.

AjayBrahmakshatriya avatar Apr 12 '20 23:04 AjayBrahmakshatriya

The same problem exists 7 years after this issue was discovered, looks like Ajay's workaround doesnt work anymore either.

hrideshmg avatar Jun 04 '22 10:06 hrideshmg

One workaround to avoid using mouse is to use browser find to find the chat and then pressing <Enter>.

haridsv avatar Sep 09 '22 07:09 haridsv

of course @haridsv, i going to share the steps:

1.- if you are in a chat box, then use tab key either you only go to the next step 2- Use vimium key "f" to know what letter we can use to go to search box 3- select the key 4- write down the name 5- press enter

READY

anders2D avatar Sep 16 '22 18:09 anders2D

of course @haridsv, i going to share the steps:

1.- if you are in a chat box, then use tab key either you only go to the next step 2- Use vimium key "f" to know what letter we can use to go to search box 3- select the key 4- write down the name 5- press enter

READY

This is a nice work around... but it would have been awesome if that could be fixed...

Vaisakhkm2625 avatar Feb 23 '23 15:02 Vaisakhkm2625

Hi, is the tabindex problem still what is causing this issue?

If I run:

document.querySelectorAll('*').forEach(function(el) {
    if (el.tabIndex < 0) {
        el.tabIndex = 0; // or any number
    }
});

In the console, f still doesn't bring any chats.

Maybe this has to be ran before vimium loads the page content?

My idea would be to write a custom adblock filter to remove those properties that conflict with the extension. Should be something easy, but I'd just need to know what are those.

Thank you

Enzodtz avatar Dec 07 '23 12:12 Enzodtz

The right solution at this point is to use WhatsApp Web's shortcut (Cmd + K) to search and open chats

Press ? on web.whatsapp.com (when logged in) to open the shortcuts table

Screenshot 2024-01-06 at 5 06 20 PM

astr0n0mer avatar Jan 06 '24 11:01 astr0n0mer

Great discussion everyone.

@Enzodtz I checked whether the -1 tab index check is what is preventing many of the links from showing, and it's not. The rows in the list of chats are failing to be detected as links for some deeper reason, which I didn't fully investigate.

While web.whatsapp.com is a popular page, I'm going to close this issue because @astr0n0mer's workaround (use Cmd-K on Mac) is a good solution for this particular issue, and I don't think there's much that can easily be done to make this intricate webapp work better with Vimium. If anyone discovers some changes which can significantly improve Vimium's UX on this site, feel free to reopen this.

Related: WhatsApp also has a desktop app (Mac and PC) which works well. This is what I use rather than visiting the website.

philc avatar Jan 13 '24 03:01 philc