為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I copy a mouse-over URL?

  • 7 回覆
  • 1 有這個問題
  • 93 次檢視
  • 最近回覆由 ThePowerTool

more options

When the URL displayed is different from the embedded URL and the URL I wish to use is the Display URL I would like a way to copy the DIsplay URL or click and access the Display URL rather than being forced to the embedded link URL. Can Firefox do this or if not is there an addon that will do this?

When the URL displayed is different from the embedded URL and the URL I wish to use is the Display URL I would like a way to copy the DIsplay URL or click and access the Display URL rather than being forced to the embedded link URL. Can Firefox do this or if not is there an addon that will do this?

由 ThePowerTool 於 修改

被選擇的解決方法

This extension says it cleans Google links: https://addons.mozilla.org/firefox/addon/google-search-link-fix/

For some reason, I don't get redirection on Google links, possible due to one of my many Greasemonkey user scripts related to Google.

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options

Do you mean the situation where the display text is like:

http://www.example.com/

but the actual link address is like:

http://we.track.your.clicks.com/?redirect=http://www.example.com/

I've always selected with my mouse, sometimes a bit loosely to avoid clicking the link and use Ctrl+c (or right-click > Copy) in that case. I don't know if there is a more efficient/elegant way to do it.

more options

You are close. When it's like that I do the same thing. This prompted me to do some additional research to better communicate my question. The link to which I'm referring, I think, is 1 step away from the display URL. It may be a mouse-over URL.

The problem I have is when the display text is:

Example Company

the actual link is:

http://we.track.your.clicks.com/?redirect=http://www.example.com/

And the URL displayed (upon mouse-over) at the bottom of the window:

http://www.example.com/

more options
more options

Hmm, the address that shows at the bottom of the window should usually match what you get if you right-click the link > Copy Link Location.

Some sites will modify the address when you "mouse down" on the link (this is how Google's exit tracking works), in which case you might end up copying the modified address instead of the one you intended to copy. In that situation it's challenging to extract out the original link once it's changed and you may need to reload the page and attack it differently.

One possibility is to use the Inspector. right-click something close to the link but not the link itself, and choose Inspect Element (Q). Firefox should open a panel in the lower part of the tab showing the HTML of the clicked element. You can select different parts of that area of the document in the Inspector until you find the link (<a> element) and copy the value of the href attribute (double-click it to select it).

That's definitely not convenient if you're planning to do it often. A bookmarklet or userscript might be handy in those cases. Is there a particular site where you have this issue where you want would a convenient solution?

more options

Redirect Remover is great! I'm going to click "yes" on that answer.

jscher2000, that's seems to be the only problem I have left--Google. I hate how my system churns on their bad links. Can you provide some hints on how to "attack it differently"? I'd really love it to work the way it used to--without those nasty URLs that cripple a system, bringing everything to a halt.

more options

選擇的解決方法

This extension says it cleans Google links: https://addons.mozilla.org/firefox/addon/google-search-link-fix/

For some reason, I don't get redirection on Google links, possible due to one of my many Greasemonkey user scripts related to Google.

more options

YES YES YES YES YES! Now all my link problems appear to be solved.

Thank you, both, cor-el and jscherr2000. I will attempt to click oon "Solved the problem" by both appropriate answers (my concern being it may only allow one).