Skip to content

nguyenhuy158/tampermonkey-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Gmail Enhanced Toolbar Script

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.

Features Table

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

How it Works

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.

Workflow Diagram

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]
Loading

Configuration

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.

  1. Click Tampermonkey Icon.
  2. Find Gmail Enhanced Toolbar.
  3. Toggle features starting with ✅ (Enabled) or ❌ (Disabled).

Installation

⚡ Quick Install

Click the link below to install the script directly via Tampermonkey:

➔ Install Gmail Enhanced Toolbar

Manual Installation

  1. Install the Tampermonkey extension.
  2. Create a new script and paste the contents of gmail-enhanced.user.js.
  3. Save and refresh Gmail.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors