web-search-navigator icon indicating copy to clipboard operation
web-search-navigator copied to clipboard

[Bug]: Brave search: Cycling through web results doesn't work

Open McFaul4 opened this issue 1 year ago • 5 comments

Related issues

  • [X] I have searched the existing issues

What happened?

The arrow down and up don't work to cycle through search results when using brave search. On the images tab, everything works on Firefox, but on Chrome, only the arrows to the left and right seem to work. With j and k it's the same, and other shortcuts like focusing the search bar worked fine (on chrome at least, on Firefox the escape key didn't work either). With the News tab the arrows worked, but it always focused the image beside it separately (which was kinda annoying) and on Firefox it just scrolled through the page when pressing the up and down arrows.

Browsers

Chrome, Firefox

Other extensions

Yes

Version

0.5.2

Troubleshooting result

  • [X] I have followed the troubleshooting section

Anything else

On Google search, everything works flawlessly.

McFaul4 avatar Jun 01 '24 19:06 McFaul4

Is the "i" key for Images work for you on Google Search?

eggbean avatar Jun 08 '24 00:06 eggbean

No it doesn't. And when i manually go to the image tab, it also only allows me to use the up and down key to navigate - a bit unconvinient.

McFaul4 avatar Aug 08 '24 08:08 McFaul4

Same issue for me. Any updates on this?

gabefighter99 avatar Sep 14 '24 10:09 gabefighter99

It looks to me like the nodes in BraveSearch class' included elements are wrong:

    const includedElements = [
      {
        nodes: document.querySelectorAll('.snippet.fdb > a'),
        highlightClass: 'wsn-brave-search-focused-link',
        containerSelector: (n) => n.parentElement,
      },
      ...

From my random Brave searches I couldn't find any fdb classes, only snippets. Changing ".snippet.fdb" to just ".snippet" appears to be a step in the right direction:

Screenshot 2024-09-14 at 3 16 36 PM

I can try to fix this myself if that's cool with you @infokiller

gabefighter99 avatar Sep 14 '24 12:09 gabefighter99

Brave Search now has built-in shortcuts for cycling trough search results with the arrow keys. that works for me now

McFaul4 avatar Jun 03 '25 07:06 McFaul4