Chrome extension (Manifest V3) that clears the data stored by the site in the active tab (cookies, HTTP cache, Cache Storage, Local Storage, Service Workers and IndexedDB).
- Automatically detects the origin (
protocol://domain:port) of the active tab. - Lets you choose which data types to clear.
- Remembers the last selected options between uses, speeding up repeated cleanups.
- Shows detailed cleanup progress (e.g., "Removing browser cache... (2/6)").
- Shows the result as soon as the removal finishes, without waiting for the page reload.
- Reloads the tab after cleanup to apply the changes.
- Uses temporary access only to the tab where the extension was opened.
- Download this repository (or clone it with
git clone https://github.com/cassiomc1/extensao-cookie.git). - Go to
chrome://extensions. - Enable Developer mode.
- Click Load unpacked and select the project folder.
Cache and storage are restricted to the current tab's origin using the origins
filter of the
chrome.browsingData
API. Cookies are the exception described below. Only types that support the filter
are used:
- Cookies — Chrome removes them for the entire registrable domain. As a result, shared cookies may also be removed from other related subdomains.
- Browser cache (HTTP cache).
- Cache Storage (Cache Storage API).
- Local Storage
- Service Workers
- IndexedDB
sessionStorage has no corresponding type in the browsingData API and is not
removed by the extension; it is discarded when the tab is closed.
activeTab: temporary access to the tab's URL only when the user opens the extension.browsingData: removal of the selected data types.storage: locally saves the last checked options to restore them on the next use.
The extension requires Chrome 96 or later to use the API's asynchronous interface.
Removal runs one data type at a time, which allows real-time progress to be shown. The total time depends on the site's data volume: browser cache is the slowest type, since Chrome scans the entire cache filtering by origin; IndexedDB from heavy sites can also take a few seconds. Cookies, Local Storage and Cache Storage are virtually instant. Uncheck unnecessary types for faster cleanups.
├── manifest.json # Extension contract (Manifest V3) and permissions
├── popup.html # Popup interface
├── popup.css # Popup styles
├── popup.js # Logic: tab detection, cleanup, progress and persistence
├── docs/ # Technical documentation (architecture)
└── tests/ # Automated tests (Node.js, no dependencies)
Run the local validation without installing dependencies:
node --test
node --check popup.jsThen load the unpacked extension in Chrome and validate a real origin.
Distributed under the MIT license.