A premium Chrome extension that embeds a real-time, theme-adaptive usage limits indicator directly into the Google Gemini chat interface. It tracks your remaining limits and automatically refreshes after every prompt completion.
- 🔄 Real-Time Updates: Automatically refreshes your remaining limit percentage the exact moment Gemini finishes generating a response.
- 🎨 Premium Aesthetics: Designed with a sleek, glassmorphic layout that synchronizes natively with Gemini's active light or dark themes.
- 📈 Detailed Dropdown: Click the pill to expand detailed status bars showing both your Current Limit and Weekly Limit along with their exact reset times.
- ⚡ Manual Refresh: Includes an interactive refresh button inside the dropdown header with custom spin loading animations.
- ⌨️ Keyboard Shortcut & Toggle: Press
Alt + U(orOption + Uon Mac) to hide or show the indicator. When hidden, an unobtrusive floating eye button appears in the bottom-right corner for quick recovery. ↔️ Dynamic Sidebar Alignment: Robustly tracks Gemini's sidebar. The pill container automatically and smoothly slides to the right when the sidebar is opened to prevent overlapping any logo or navigation text.- 🔑 Auth Detection: Automatically detects if you are logged out and displays a user-friendly sign-in warning with a direct redirect link.
- CSP & X-Frame-Options Bypass: Uses Chrome's
declarativeNetRequestAPI to dynamically strip restrictive framing headers (Content-Security-PolicyandX-Frame-Options) on requests togemini.google.com/usage. - Dual-Strategy Scraper:
- Strategy 1: First attempts a high-speed background AJAX
fetch()request to parse page content. - Strategy 2: If the page requires dynamic client-side rendering, it falls back to loading the page in a hidden same-origin iframe and polls the
iframe.contentDocumentdirectly.
- Strategy 1: First attempts a high-speed background AJAX
- Response State Observer: Utilizes a
MutationObserveron the document body to monitor Gemini's send/stop buttons and generation indicators. It captures the transition from "active generation" back to "idle" and immediately triggers a refresh.
Since this extension is in developer mode, you can load it directly into Google Chrome:
- Clone or download this repository.
- Open Google Chrome and navigate to
chrome://extensions/. - Enable Developer mode using the toggle switch in the top-right corner.
- Click the Load unpacked button in the top-left corner.
- Select the folder containing these files.
- Open Google Gemini and enjoy!
- Toggle Visibility:
Alt + U(orOption + Uon macOS).
This project is licensed under the MIT License - see the LICENSE file for details.