nAODI's Blog

All about what I am interested in.

Archive for the ‘mailto’ tag

[Firefox3]简单几步,让mailto链接自动指向Gmail

without comments

类似于超链接,点击形如“mailto:xxx@xxx.com”的链接会自动启用你系统中默认的邮件撰写程序,新建一封指向目标地址的邮件。过去要让它默认打开Gmail这样的WebApp,还得借助各种设置软件。比如win下的“G-Mailto”软件,firefox2下的“Better Gmail”插件等。

最近在Lifehacker看到一篇文章,如果你已经切换到最新的Firefox 3 了,那么通过简单的几步,就可以不借助于其他任何扩展,直接修改“mailto:” 默认打开的程序。

  1. 在地址栏中键入“about:config”,进入Firefox3设置界面。
  2. 在查询栏中输入“gecko.handlerService”,于结果中找到“gecko.handlerService.allowRegisterFromDifferentHost”项,将其值由默认的“false”修改为“true”。
  3. 在查询栏中输入“network.protocol-handler.external.mailto” ,确定其值为“true”。
  4. 在地址栏中输入如下的javascript代码,并回车
    javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")
  5. 此时Firefox3 会出现“是否将Gmail设置为mailto链接的一项应用”,点击确定。
  6. 如图所示,在“工具”——“选项”——“应用程序”标签页下,找到“mailto”类型,将其动作设置为“使用GMail”。(如果没有相应选项,请重启Firefox)
  7. 最后,回到“about:config”中,将“gecko.handlerService.allowRegisterFromDifferentHost”值,调回“false”。

Written by nAODI

05月 22nd, 2008 at 8:10 pm

Posted in Google, Internet

Tagged with , , ,