注册 mailto 邮件头和添加feed websevers

Tags
firefox
Created
Apr 7, 2014 2:30 AM

跟URL scheme

同一域下添加下面code运行

onclick="navigator.registerProtocolHandler ('mailto', 'https://mail.google.com/mail/?extsrc=mailto&url=%s', 'Gmail');"

或者直接运行

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail")

%s用来替换链接的href属性,提供给处理程序的参数

运行网站自己处理特定MIME内容

window.navigator.registerContentHandler(mimeType, uri, title);

使用local客户端

network.protocol-handler.external.mailto;true

使用webmail时给为false

Preference Name Status Type Value browser.contentHandlers.types.0.title default string Google browser.contentHandlers.types.0.type default string application/vnd.mozilla.maybe.feed browser.contentHandlers.types.0.uri default string http://fusion.google.com/add?feedurl=%s browser.contentHandlers.types.1.title default string My Yahoo! browser.contentHandlers.types.1.type default string application/vnd.mozilla.maybe.feed browser.contentHandlers.types.1.uri default string http://add.my.yahoo.com/rss?url=%s

SuperMade with Super