Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.82 KB

File metadata and controls

48 lines (35 loc) · 1.82 KB

Tab Count Tracker

A Chrome extension that tracks and displays the total number of tabs open across all Chrome windows.

Features

  • Live tab count badge — shows the current number of open tabs directly on the extension icon
  • Color-coded thresholds — badge color changes based on tab count (green → orange → red → dark red) with a blinking animation on tier changes
  • Daily & weekly tracking — records tab count history so you can see how your tab usage trends over time
  • Configurable ranges — customize the color thresholds via the options page to match your habits

Default Color Ranges

Color Tab Count
Green 1–20
Orange 21–40
Red 41–60
Dark Red 61+

Installation

  1. Clone or download this repository
  2. Open chrome://extensions/ in Chrome
  3. Enable Developer mode (toggle in the top-right corner)
  4. Click Load unpacked and select the project folder

Usage

  • The extension icon badge shows your current tab count with a color indicator
  • Click the extension icon to see your current count, today's change, and this week's change
  • Right-click the icon → Options (or click the gear icon in the popup) to customize color thresholds

Project Structure

├── manifest.json      # Extension manifest (Manifest V3)
├── background.js      # Service worker — tab tracking, badge updates, history
├── popup.html/js      # Popup UI — current count and daily/weekly changes
├── options.html/js    # Options page — configure color threshold ranges
└── images/            # Extension icons (16, 48, 128px)

Permissions

  • tabs — query open tabs to get the count
  • storage — persist settings and history
  • alarms — schedule daily history snapshots