A high-performance Chrome Manifest V3 extension that cleans cache, history, and cookies on automated schedules while aggressively reclaiming memory from idle tabs.
Features β’ Installation β’ Architecture β’ Configuration β’ License
Auto Clear & Optimize Pro is a lightweight, zero-bloat browser utility built strictly according to Google Chrome's Manifest V3 specification. Designed for power users, developers, and privacy-conscious professionals, it prevents memory leaks and browser bloat by:
- Reclaiming system RAM through intelligent background tab discarding.
- Automating cache, browsing history, download records, and cookie purges on configurable alarms.
- Guaranteeing 100% local operation with zero remote telemetry or external analytics.
- β° Automated Scheduled Purging: Configurable background timer via
chrome.alarmsto clear cache and history at intervals (15m, 1h, 4h, 24h, or on browser startup). - π§ Tab RAM Optimizer (
chrome.tabs.discard): Identifies idle background tabs exceeding inactivity thresholds and suspends their JavaScript execution context without closing them. - π‘οΈ Granular Cleaning Toggles: Select exactly what to wipe:
- Cache Storage & Service Worker caches
- Browsing History & Search Logs
- Cookies & Local Site Data
- Download History records
- FormData & Autofill entries
- π¨ Sleek Dark-Mode Popup: Clean, responsive UI with immediate feedback badges, system status indicators, and one-tap manual wipe triggers.
- β‘ Manifest V3 Compliant: Uses persistent state in
chrome.storage.localand event-driven Service Workers to ensure near-zero idle CPU consumption.
flowchart TD
A[Chrome Browser Lifecycle] --> B(MV3 Service Worker: background.js)
B -->|chrome.alarms trigger| C{Scheduled Optimizer}
C -->|Target Inactive Tabs| D[chrome.tabs.discard: Reclaim RAM]
C -->|Target Expired Data| E[chrome.browsingData.remove: Wipe Bloat]
F[User Click] --> G[Popup UI: popup.html & popup.js]
G -->|Instant Manual Command| B
G -->|Update Settings| H[(chrome.storage.local)]
H -->|State Sync| B
AutoClearExtension/
βββ manifest.json # Manifest V3 configuration & permission boundaries
βββ background.js # Background service worker with alarms & cleanup routines
βββ popup.html # Modern dark-mode extension popup interface
βββ popup.js # Frontend event handling & storage synchronization
βββ .gitignore # Package and artifact exclusions
βββ LICENSE # Open-source MIT License
- Clone or download this repository:
git clone https://github.com/Kamran5H/AutoClearExtension.git
- Open Google Chrome and navigate to
chrome://extensions/. - Enable Developer mode using the toggle switch in the top-right corner.
- Click Load unpacked and select the
AutoClearExtensiondirectory. - Pin Auto Clear & Optimize Pro to your Chrome toolbar for easy access!
This project is open-source and released under the MIT License.
Copyright (c) 2024-2026 Kamran Ashraf.