Is there any way to make the urlbar results open in a new background tab without closing the results list? So I could conveniently open multiple urls from the urlbar without having to retype the search term.
Basically overriding how ctrl + enter/LMB works, I think. So the results wont close and urlbar content won't change when I press/click.
I've been searching for a solution since Stay-Open Menu broke, but so far it seems no-one made one. I'm surprised people don't miss a way to open multiple related urls.
Maybe you can hover on a urlbar result using the mouse, then press F1 key to open the url in a new background tab without closing the menu, but I don't know how to get the hovered urlbar result url.
morat wrote: ↑September 29th, 2024, 8:21 am
@avada
Maybe you can hover on a urlbar result using the mouse, then press F1 key to open the url in a new background tab without closing the menu, but I don't know how to get the hovered urlbar result url.
That addon is complicated. AFAICT, there isn't a simple userChrome.js hack to override the default behavior.
There was a 4.0b1 version that worked right until XUL addon removal. I don't know if it's simpler or not.
Whit is F1 supposed to do? With a clean profile it doesn't seem to do anything for me. (with my default profile it's used by Tree style tab)
morat wrote: ↑September 29th, 2024, 8:21 am
That addon is complicated. AFAICT, there isn't a simple userChrome.js hack to override the default behavior.
I was thinking/hoping if it's possible to read the hovered or selected item's URL then the relevant shortcut click or keypress could be hijacked and the url used to open a tab in the background. And not actually modifying the urlbar behavior.
morat wrote: ↑September 29th, 2024, 1:39 pm
The F1 keyboard shortcut is just an example. Another keyboard shortcut could be used to execute the key binding.
Ah, I misunderstood.
morat wrote: ↑September 29th, 2024, 8:21 am
but I don't know how to get the hovered urlbar result url.
Is there no way to get the selected (via arrow keys) item's URL either?
I noticed the div#urlbarView-row-3 element has the selected="" attribute in the browser toolbox when I select the 3rd row with the arrow keys in the popup, so I searched for "selected" in the /urlbar/ source code.
morat wrote: ↑September 30th, 2024, 8:54 am
@avada
I noticed the div#urlbarView-row-3 element has the selected="" attribute in the browser toolbox when I select the 3rd row with the arrow keys in the popup, so I searched for "selected" in the /urlbar/ source code.
Do you think it's possible to hijack the ctrl+enter (or alt enter) shortcut? Keyconfig seems to be unable to use any combination with 'enter' here, even if it's not used, such as ctrl+shift+alt+enter.
If not, I guess I'll need to figure out something that's convenient and somewhat logical.
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.