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.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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