A Chrome & Brave browser extension designed for YouTube and YouTube Music listeners to automatically switch video resolutions based on tab focus state, saving internet data and system resources.
- ⚡ Instant Resolution Switching: Automatically switches YouTube quality to your preferred high resolution (e.g. 1080p/720p) when viewing the tab, and instantly drops to 144p when you switch to another tab or minimize the browser.
- 🎯 Smart Resolution Fallback: If a target resolution (e.g. 360p) is not available on a specific video, it intelligently applies the closest matching resolution (e.g. 480p) without interrupting playback.
- 🎧 Audio-Only Priority Mode: Automatically locks videos to 144p when listening in background mode to save maximum bandwidth.
- 🔌 Zero-Refresh Auto Connection: Automatically connects to pre-existing open YouTube tabs without needing manual page reloads.
- 🎨 Sleek Dark Glassmorphism UI: Premium popup menu to customize focused tab quality, background tab quality, and live status tracking.
- Clone or download this repository:
git clone https://github.com/siddupatel-00/YT-Auto-Resolution.git
- Open Chrome or Brave browser and navigate to
chrome://extensions. - Enable Developer mode in the top-right corner.
- Click Load unpacked and select the extension folder.
YT-Auto-Resolution/
├── manifest.json # Manifest V3 specification
├── background.js # Background service worker
├── content.js # Isolated content script
├── inject.js # Page context YouTube player API controller
├── popup/
│ ├── popup.html # Glassmorphism UI layout
│ ├── popup.css # Styling & theme variables
│ └── popup.js # Options management & tab communication
└── icons/ # Extension icons (16x16, 48x48, 128x128)
Distributed under the MIT License. See LICENSE for details.