cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
not-a-user
New member
Status: New idea

When bookmarking the page and copying the bookmark from the Library, we get a "nice" html link as text/html in the clipboard. When copying from the location bar, we only get the "ugly" url as text/plain. See example below.

-> Pasting into Teams etc. yields a "nice" link if copied from bookmarks (rare) but a "ugly" one if copied from location bar (standard case).

Linux, Firefox 102.0.

Functionally, the same is true in Windows. Note that Edge copies "nice" links from the location bar.

Example:

[user@host ~]$ # bookmark page and copy from Library

[user@host ~]$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
text/x-moz-place
text/x-moz-url
text/html
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
text/x-moz-place-action
[user@host ~]$ xclip -selection clipboard -o -t text/html
<meta http-equiv="content-type" content="text/html; charset=utf-8"><A HREF="https://connect.mozilla.org/">Home - Mozilla Connect</A>

[user@host ~]$ # copy from location bar

[user@host ~]$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
[user@host ~]$ xclip -selection clipboard -o -t text/plain
https://connect.mozilla.org/

 

5 Comments
Status changed to: New idea
Jon
Community Manager
Community Manager

Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.

Anonymous
Not applicable
not-a-user
New member

@AnonymousThank you indeed! Your extension is a perfect workaround. And its a single click (instead of click + CTRL-C).

So we are back at the point: Is the Feature basic functionality or scope of an extension? I don't know.

Anonymous
Not applicable

@not-a-user 

FYI: The addon has a shotcut (default: CTRL+SHIFT+C) that you can re-assign to anything firefox allows. (ref. https://support.mozilla.org/en-US/kb/manage-extension-shortcuts-firefox )

I might have forgotten to add that info to the addon description page.  My Bad.

jscher2000
Leader

I'm late to this party, but I have an add-on, too. 😉

https://addons.mozilla.org/firefox/addon/copy-frame-or-page-url/

If you prefer HTML, you can make that the default for a single-click on the button in the add-on options. Otherwise, you need to Ctrl+click the button.