Skip to content

Instantly share code, notes, and snippets.

@npanuhin
Last active September 21, 2022 13:32
Show Gist options
  • Save npanuhin/57983696800b89c4a875b3ad0a66f2cc to your computer and use it in GitHub Desktop.
Save npanuhin/57983696800b89c4a875b3ad0a66f2cc to your computer and use it in GitHub Desktop.
Как установить Mail.ru в качестве обработчика ссылок mailto в Firefox | How to set Mail.ru as an application for mailto links in Firefox

Как установить Mail.ru в качестве обработчика ссылок mailto в Firefox

  1. Перейдите на сайт почтового сервиса: e.mail.ru

  2. Откройте консоль Firefox одним из следующих способов:

    • Ctrl+Shift+k (Mac: Command+Alt+k)
    • F12 > вкладка Console
    • (Строка меню, нажмите Alt) Инструменты > Инструменты браузера > Web Developer Tools > вкладка Console
  3. Скопируйте следующую строчку и вставьте её в открывшуюся консоль Firefox:

    navigator.registerProtocolHandler('mailto', 'https://e.mail.ru/compose?mailto=%s', 'Mail.ru');

    Затем нажмите Enter

  4. Firefox покажет вам окошко под строкой поиска со следующим содержанием:

    Добавить "e.mail.ru" в качестве приложения для ссылок mailto?

    Нажмите Добавить приложение

  5. Перейдите в настройки Firefox (Ctrl+T, введите about:preferences, нажмите Enter), прокрутите вниз до раздела Файлы и Приложения > Приложения

  6. Введите mailto в строку поиска под заголовком Приложения. Если вы всё сделали верно, напротив протокола mailto в колонке Действие таблицы у вас должна быть опция Использовать e.mail.ru. Нажмите на неё.

  7. Перейдите по ссылке example@example.com, чтобы проверить, что всё работает

How to set Mail.ru as an application for mailto links in Firefox

  1. Go to the mail provider's website: e.mail.ru

  2. Open Firefox's Web Console. You can do that using either:

    • Ctrl+Shift+k (Mac: Command+Alt+k)
    • F12 > Console tab
    • (Menu bar, press Alt) Tools > Browser Tools > Web Developer Tools > Console tab
  3. Copy the following line and paste it to the Firefox's Web Console:

    navigator.registerProtocolHandler('mailto', 'https://e.mail.ru/compose?mailto=%s', 'Mail.ru');

    After that press Enter

  4. Firefox will show a prompt below the search bar:

    Add "e.mail.ru" as an application for mailto links?

    Click Add application

  5. Go to Firefox settings (Ctrl+T, paste about:preferences, press Enter), scroll down to Files and Applications > Applications

  6. Type mailto in the search bar under the Applications heading. If you did everything correctly, then opposite the mailto protocol, in the Actions column, there should be an option Use e.mail.ru. Click this option

  7. Go to example@example.com to check that mailto links are now working in your browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment