A lightweight Chrome extension that tries to make Gmail account switching reuse the same tab instead of opening a new one.
- Reuse the same Gmail tab when switching accounts.
- Minimal permissions required.
- Works for the most common Gmail account-switch URLs (
https://mail.google.com/mail/u/*). - Intercepts both JS-triggered new tabs and standard anchor clicks.
To run the extension from source:
-
Clone this repository:
git clone https://github.com/bscript/same-tab-gmail.git cd same-tab-gmail -
Open Chrome and navigate to:
chrome://extensions/ -
Enable Developer mode (top-right).
-
Click Load unpacked and select the
same-tab-gmail/folder. -
Open Gmail. Try switching accounts — the extension will try to reuse the same tab.