Distraction free Gmail // inbox check detox

Designed for people who use to check their inbox too often. This script hides the Inbox and allows only 3 checks per day for 10 Minutes. Searching for emails and writing emails is possible all day.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
lukasferger
今日安裝
0
安裝總數
1
評價
0 0 0
版本
2025-03-27
建立日期
2025-04-04
更新日期
2025-04-04
尺寸
6.6 KB
授權條款
MIT means
腳本執行於

🧠 Distraction-Free Gmail – Inbox Check Detox

A minimalist userscript to help reduce email distractions.
By default, your Gmail inbox is hidden — you're allowed to view it up to 3 times per day for 10 minutes each.
Composing and searching emails remains fully available at all times.


⚙️ Features

✅ Always allowed:

  • Writing emails
  • Searching for emails (#search in the URL)
  • Accessing labels, drafts, sent mail, etc.

⛔ Limited:

  • Direct access to the inbox (e.g. "Inbox", "All Mail")
  • Max. 3 views per day, each lasting 10 minutes

🕹️ How to Use

  1. When Gmail loads, a blue button appears in the top right corner:
    Show inbox (X) – X indicates how many views are left for the day.
  2. Click the button to reveal the inbox and start the 10-minute timer.
  3. After 10 minutes, the inbox will automatically be hidden again.
  4. You can manually hide the inbox early by clicking Hide inbox.

🔄 Navigation Behavior

  • Search view (#search): Inbox is always shown — without using up your daily views.
  • Navigating between tabs (e.g. from "Sent" back to "Inbox") keeps the inbox visible while a view is active.

💾 Technical Notes

  • Views are tracked using localStorage and reset daily.
  • CSS is injected to hide the inbox and prevent flash loading artifacts.
  • The script uses a lightweight overlay during page load for a clean visual experience.

📦 Installation

Install using a userscript manager like Tampermonkey or Violentmonkey.
The script runs on all https://mail.google.com/mail/* URLs.


Made by Lukas Ferger