您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows one email at a time in Gmail inbox, with enhanced email detection and accurate counter for empty inbox.
This script is a Gmail Single Email View UserScript.
Its primary purpose is to transform the default Gmail inbox view, which typically displays multiple emails, into a single-email view, showing only one email at a time to reduce visual clutter and overwhelm.
I needed this because sometimes looking at 30 emails that need to be actioned would prevent me from working on any of the emails!
Key features and functionality include:
One Email at a Time: It hides all but the current email in the inbox.
Navigation Controls: It adds "Previous" and "Next" buttons at the bottom of the screen to allow users to easily cycle through their emails one by one.
Dynamic Adaptation: It uses a MutationObserver to detect changes in Gmail's interface (like new emails arriving, emails being archived/deleted, or page navigation), ensuring the single-email view and navigation remain functional and up-to-date.
Accurate Counter: It includes a counter that displays the current email's position and the total number of emails in the filtered list (e.g., "1 / 13").
Empty Inbox Handling: It correctly identifies when the inbox is empty and adjusts the display and counter accordingly ("No Emails Found").
UI Preservation: It's designed to keep essential Gmail UI elements (like the left-hand navigation menus, top toolbar, and pagination) visible, allowing users to exit the single-email view and navigate to other parts of Gmail.