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.

You are viewing a single thread.
View all comments View context
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
1 point

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

permalink
report
parent
reply
8 points

maybe because example is a tld?

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

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