Override Email Mail-to links with Copy to Clipboard

By jason · 4 months ago · 10+ installs

Clicking mail-to links now copies email addresses to clipboard. If the default mail-to experience is needed, a toast notification provides fallback to open mail client. Note: The toast can be disabled with the menu sidebar.

Key Highlights

  • Clicking a mailto link copies the recipient email address to your clipboard
  • Supports mailto links with multiple email addresses
  • Shows a toast with an "Open in Mail" fallback after copying
  • Works across all sites
  • Toast notifications can be disabled when not needed

Details

This tweek changes what happens when you click a mailto link on any site: instead of opening your default mail app right away, it copies the linked email address or addresses to your clipboard. It works across sites and handles links with one or multiple recipient addresses.

After copying, it can show a small toast confirming what was copied and offering an "Open in Mail" option if you still want the standard mailto action. If no email address is found or copying fails, the toast reports that too, and toast notifications can be turned off.

Runs on

All websites

Developer

Tweek Code

383 lines ·

PermissionsThis tweek may access the following

Clipboard

Can copy content to your clipboard

Copy mailto links to clipboard on any site | Tweeks