← Back to Docs
🔗 Native Gmail Integration

Native Gmail Send Hook

The Attest extension hooks directly into Gmail's send pipeline at the DOM level — intercepting the send action before any data leaves your browser, without reading a single character of your email.

How the Hook Works

When the extension loads on mail.google.com, it attaches a click event listener to the Gmail Send button using a MutationObserver. This is a standard browser extension technique — the same approach used by Grammarly, Boomerang, and other Gmail extensions.

When the Send button is clicked, the extension calls event.preventDefault() to pause the action, shows the verification overlay, and only calls the original send handler after successful verification.

What the Extension Can and Cannot See

✓ Can Detect

Send button click event

That a send action was initiated

Current tab URL (mail.google.com)

✕ Cannot Access

Email subject or body

Recipient addresses

Attachments or files

Gmail account ID

Any Google API data

Extension Permissions

You can verify this yourself. Open chrome://extensions, find Attest, and click "Details". The permissions list contains only:

// manifest.json — permissions

"permissions": [

"activeTab",

"storage"

]

// No gmail.readonly. No Gmail API. No OAuth scopes.

Compatibility

Gmail WebFull Support
Google WorkspaceFull Support
Chrome 110+Full Support
Edge (Chromium)Full Support
Brave BrowserFull Support
FirefoxComing Soon