A Tampermonkey script designed to enhance the Gmail interface by adding quick-access buttons for common features, with the ability to toggle individual features on/off through the Tampermonkey menu.
| Feature Name | Description | Placement | Toggleable |
|---|---|---|---|
| Filter Near Archive | Adds a filter icon button to the left of the standard Gmail 'Archive' button. | Toolbar (Group 2) | Yes |
| Filter Near Select | Adds a filter icon button to the right of the 'Select' checkbox group. | Toolbar (Group 1) | Yes |
The script uses a MutationObserver to watch for changes in the Gmail DOM. When the toolbar buttons (like 'Archive' or 'Select') are rendered, the script injects the custom buttons into the appropriate positions.
graph TD
A[Start Gmail] --> B{Tampermonkey Enabled?}
B -- Yes --> C[Initialize MutationObserver]
B -- No --> Z[End]
C --> D[Watch DOM for Toolbar Elements]
D --> E{Archive/Select Found?}
E -- Yes --> F{Feature Enabled in Config?}
F -- Yes --> G[Inject Custom Filter Button]
F -- No --> D
E -- No --> D
G --> H[User Clicks Custom Button]
H --> I[Trigger Gmail's 'More' Menu]
I --> J[Click 'Filter messages like these']
J --> K[Filter Dialog Opens]
You can turn individual features on or off by clicking on the Tampermonkey icon in your browser and selecting the feature from the script's menu. A page reload is required for changes to take effect.
- Click Tampermonkey Icon.
- Find Gmail Enhanced Toolbar.
- Toggle features starting with ✅ (Enabled) or ❌ (Disabled).
Click the link below to install the script directly via Tampermonkey:
➔ Install Gmail Enhanced Toolbar
- Install the Tampermonkey extension.
- Create a new script and paste the contents of
gmail-enhanced.user.js. - Save and refresh Gmail.