After using Chrome for a decade and switching back to Firefox, one feature I missed was the ability to right-click and Go to [url] directly, for any selected text that vaguely resembles a URL.

I made Goto foo to approximately replicate Chrome’s behavior in Firefox, but it would be nice if no extension were necessary.

22 points

I highlight the URL text, then drag it to my tab bar to open it. That could be an option if the workflow is not too annoying to use.

permalink
report
reply
11 points

I do the same

Another option i’m aware of is CTRL+C, T, V and enter (Keyboard combo to Copy, open new tab, paste, go)

permalink
report
parent
reply
10 points

Interesting, that does appear to solve the same problem.

In my decades of using web browsers, I can’t say that I’ve ever tried dragging text to the address bar. That’s not very discoverable, and the drag action messes with the page’s scroll position.

permalink
report
parent
reply
9 points

You can also drag it to the tab bar to add it as a new tab.

permalink
report
parent
reply
7 points

Maybe it is more visible that way, but the same can be done clicking on open link or open in private window.

permalink
report
reply
4 points

Firefox’s ‘Open Link’ feature is quite limited compared to Chrome. For example, try navigating to lemmy.ml using the “Firefox@lemmy.ml” link in the sidebar.

Even in cases where it works, it doesn’t preview the link target in the context menu.

permalink
report
parent
reply
3 points

I just did exactly that, with both the link in the sidebar and the substring “lemmy.ml” from the full “firefox@lemmy.ml” string in your comment. It works different on Firefox, I suppose as a by product of being implemented differently, but it’s not less powerful. Your plugin is cool and all, but it’s use is extremely niche to save fractions of a second.

permalink
report
parent
reply
2 points

I did exactly that and it works.

permalink
report
parent
reply
1 point

When I highlight the trailing lemmy.ml and select Open Link in New Tab, Firefox takes me to https://sh.itjust.works/c/firefox@lemmy.ml (the original link target) instead of https://lemmy.ml

permalink
report
parent
reply
23 points
*

the first option when you right click a text vaguely resembling a link is “open link in new tab” or something like that. Its the same thing as go to [url]

permalink
report
reply
62 points

Huh? Firefox does this though. Highlight an address and right click then select open in new tab or whatever.

permalink
report
reply
11 points

That doesn’t work in many cases, like the example in the screenshot.

permalink
report
parent
reply
23 points

IP adresses are pretty edge case yeah. I dont know if that should even be supported. The “example.com” does actually work tho, its just if you only include “.co” in your selection, it doesn’t recognize it as a URL even tho .co is the national TLD of Colombia. But all that really needs to change is to support all existing TLD’S and maybe IP addresses if there is community interest in it.

permalink
report
parent
reply
8 points
*

I don’t think .co versus .com is the relevant factor. I can select xample.co by itself, but not as a substring of http://www.example.com. The rules seem so arbitrary and context-dependent that it behaves more like a dice roll than a usable feature.

If a selection to URL feature cares about TLDs, IP addresses, or text beyond the selection range, then it’s operating at the wrong abstraction layer. (well, technically Goto foo has a couple lines of code to [bracket] bare IPv6 addresses, but that’s not core functionality.)

permalink
report
parent
reply
7 points

In such cases, you can just highlight and drag the text to the address bar.

permalink
report
parent
reply
1 point

www.example works, but www.exampl doesn’t. Perhaps there’s a minimum character count to trigger it…

permalink
report
parent
reply
2 points
*

I ran into this not long after seeing this post. This site disables links and the options aren’t there. I find the context menu is pretty strange in general. But the problems it causes are small and easy to move on from so it’s never really questioned. It honestly seems to have a mind of it’s own sometimes. Not nearly as bad as the windows explorer context menu though.

permalink
report
parent
reply
11 points

Don’t let everyone “well actually” you, here. The fact you are making this robust is great.

Feature idea: holding down Alt/Option changes the menu to open in a new tab.

permalink
report
reply
1 point

‘New Tab’ is the default/only behavior currently.

I notice that Chrome supports Ctrl-click (background tab) and Shift-click (new window), and Firefox provides a modifiers array, so I think I could replicate this.

permalink
report
parent
reply
1 point
*

Oh, sounds good. It would be best to follow similar conventions. I’m a Safari person, so I didn’t know New Tab was default in Firefox. Making the menu say it will be a new tab would be good.

permalink
report
parent
reply
2 points

I’ve added support for Ctrl/Command/Shift in v1.7, but the menu text is unchanged because I don’t know which keys are pressed prior to the click event. This matches Chrome’s behavior.

permalink
report
parent
reply

Firefox

!firefox@lemmy.ml

Create post

A place to discuss the news and latest developments on the open-source browser Firefox

Community stats

  • 1.8K

    Monthly active users

  • 887

    Posts

  • 17K

    Comments

Community moderators