Browser’s Default Email Client with a Simple Hack
Sick of mailto: links in your browser opening Outlook or Mail.app whenever you click them? You can tackle this problem with extensions or through other means, but Googler and HTML5 guru Paul Irish offers a simple, no-add-ons-required approach. Here's how it works:
- Open Gmail in Chrome.
- Press Ctrl+Shift+J (Windows) or Cmd+Opt+J (Mac) to open Chrome's built-in JavaScript console.
- Paste the following into the console and press Enter:
- navigator.registerProtocolHandler("mailto",
"https://mail.google.com/mail/?extsrc=mailto&url=%s",
"Gmail");
- Chrome will prompt you, asking if you'd like to "Allow Gmail (mail.google.com) to open all email links?" Click the Use Gmail button.
- That's it!
No comments:
Post a Comment