Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

On a webpage, how do you change a text based email address to an URL link?

  • 3 个回答
  • 3 人有此问题
  • 7 次查看
  • 最后回复者为 tbutts

more options

I use to have an add-on that would take email addresses displayed as text in webpages display them as URL link. When I would click the URL link, it would open a new email message. What is the name of this add-on or how do I get this feature working in my browser again?

I use to have an add-on that would take email addresses displayed as text in webpages display them as URL link. When I would click the URL link, it would open a new email message. What is the name of this add-on or how do I get this feature working in my browser again?

被采纳的解决方案

I don't recall using one, but I have heard about add-ons that "linkify" any URL in the page so it is clickable. Maybe they would also "linkify" an email address?

As a workaround, you could use bookmarklet. That's a script which you save as a bookmark so you can click the bookmark when you want to run it. Here's how:

(1) Select and copy the following script (it's actually one long line):

javascript:var eml=window.getSelection(); window.location.href="mailto:"+eml; void 0;

(2) Right-click a convenient location on your Bookmarks Toolbar or Bookmarks Menu and choose New Bookmark.

(3) Paste the script into the Location field. Then in the name field, you can type mailto or any name you like.

(4) Click the Add button

Here's an example for testing. Select the email address using the mouse:

example@example.com

Then click the bookmark. Success?

By the way, this script doesn't check that what you selected is a valid email, or remove excess spaces on either end, so it definitely could be improved...

定位到答案原位置 👍 0

所有回复 (3)

more options

First I would recommend changing the mailto setting in the Application section of the Firefox Options to the desired email.

You can also look at the network.protocol-handler.external.mailto prefs on the about:config page.

If network.protocol-handler.external.mailto prefs are user set (bold) then right-click and Reset them to the default value.


I am sorry but I could not find an add on that converts emails into mailto links of webpages.

more options

选择的解决方案

I don't recall using one, but I have heard about add-ons that "linkify" any URL in the page so it is clickable. Maybe they would also "linkify" an email address?

As a workaround, you could use bookmarklet. That's a script which you save as a bookmark so you can click the bookmark when you want to run it. Here's how:

(1) Select and copy the following script (it's actually one long line):

javascript:var eml=window.getSelection(); window.location.href="mailto:"+eml; void 0;

(2) Right-click a convenient location on your Bookmarks Toolbar or Bookmarks Menu and choose New Bookmark.

(3) Paste the script into the Location field. Then in the name field, you can type mailto or any name you like.

(4) Click the Add button

Here's an example for testing. Select the email address using the mouse:

example@example.com

Then click the bookmark. Success?

By the way, this script doesn't check that what you selected is a valid email, or remove excess spaces on either end, so it definitely could be improved...

由jscher2000 - Support Volunteer于修改

more options

The add-on is Linkification. Thank you for your help.