Auto-Clear Site Data EN
byuserforuser · Firefox
Finally!!! successor to `Cookie AutoDelete` extension |🧹 Automatically clears site data (cookies, local storage, IndexedDB, Cache, SW) when you close a site's last tab, with full support for Firefox Containers 📦 and Firefox for Android 📱.
截图
简介
Auto-Clear Site Data
Automatically clears cookies, localStorage, indexedDB, cache, and service workers when you leave a site — whether you close a tab, navigate away, or the browser discards it. Stay private and keep your storage clean without lifting a finger. 🧹
✨ What It Does
- Auto-clears on exit — Data is wiped after a configurable delay (0–3600s) when you leave a site
- Clear on Startup — Optionally clean up leftover data from your last session
- Total Cookie Protection Ready — Completely clears cross-site partitioned cookies introduced by Firefox's Strict Enhanced Tracking Protection, leaving zero traces behind (only cookie)
- Manual "Clear Now" — One-click clearing with full control over what gets removed
🎛️ Flexible Exemptions
Create independent exemption rules for any site or pattern:
- Whitelist mode — Clear everything except your exempted sites
- Blacklist mode — Only clear data from sites you specify
- Per-container rules — Different exemptions for each Firefox Container
- Granular control — Choose exactly which data types to keep or clear per rule
🔍 Advanced Options
- Deep Clear — Also clear parent domain data (e.g.,
accounts.google.com→google.com) - Redirect catching — Catch and clear sites you quickly pass through
- Deferred clearing — 3rd-party resources shared across tabs are cleared only when all tabs using them are closed
- Smart dependency tracking — Automatically tracks iframes and scripts, never clears data still in use
- Container support — Full Firefox Multi-Account Containers integration with per-container settings
🚀 When Data Gets Cleared
- ❌ Tab closed — Last tab of a site is closed
- 💤 Tab discarded — Browser unloads inactive tabs
- 🔀 Navigation — You navigate to a different domain
- 🚀 Startup — Optional cleanup from previous session
⚡ Built for Performance
- Batched API calls reduce browser overhead
- Smart dependency tracking prevents clearing data still in use
- Race-condition-safe architecture
🔒 Privacy First
100% local. Your settings and browsing habits never leave your device.
🔐 Permissions Explained
- tabs — Check if a site is still open before clearing its data
- browsingData — Actually clear cookies, cache, localStorage, etc.
- storage — Save your settings and exemption rules
- contextualIdentities — Support Firefox Containers
- webNavigation — Detect when you navigate away from a site
- cookies — Find all cookie names for browser.cookies.remove() api to remove partition cookies
- webRequest — Track iframes and 3rd-party scripts loaded by pages
- alarms — Schedule delayed clearing
Works on Firefox Desktop and Firefox Android.
⚠️ Known Limitations & Firefox Behaviors
1. Total Cookie Protection (TCP) & Partitioned Data
If you use Firefox with Total Cookie Protection enabled (Strict Enhanced Tracking Protection, or network.cookie.cookieBehavior = 5), Firefox isolates site data into specific partitions to prevent cross-site tracking.
- Cookies (Fixed): Partitioned cross-site cookies are fully supported and will be safely extracted and eradicated by this extension.
- LocalStorage, IndexedDB and others: Currently, the Firefox WebExtensions API lacks full support for selectively clearing partitioned data (like LocalStorage and IndexedDB) by hostname. As a result, cross-site partitioned folders for these types might not be completely cleared.
- Workaround (Not recommended): If you rely heavily on this extension to clear all cross-site storage, you can adjust your Enhanced Tracking Protection settings to Custom and select Cross-site and social media trackers (
network.cookie.cookieBehavior = 4).
2. Leftover .metadata-v2 Files
After the extension clears a site's data, you might notice that an empty directory containing a .metadata-v2 file remains (e.g., in /storage/default/).
- Privacy Safe: Please rest assured that the actual data payload is completely safely cleared. The
.metadata-v2file is strictly an internal bookkeeping file managed by Firefox's QuotaManager. Websites have zero access to this file, meaning it cannot be used for tracking or as a supercookie. - Why it's not deleted: Due to security sandboxing, WebExtensions do not have the filesystem permissions required to delete Firefox's internal root folders or metadata files.
Auto-Clear Site Data 是做什么的
Auto-Clear Site Data 是一款面向 Firefox 的隐私与安全类扩展,主要用来拦截追踪器、屏蔽广告、管理 Cookie、加固浏览器指纹。官方对它的介绍是:Finally!!! successor to `Cookie AutoDelete` extension |🧹 Automatically clears site data (cookies, local storage, IndexedDB, Cache, SW) when you close a site's last tab, with full support for Firefox Containers 📦 and Firefox for Android 📱.在Firefox 附加组件商店(AMO)上,它当前版本 3.19.1,评分 3.79(19 人评价),约 159 名用户。
适合什么人用
从功能定位看,Auto-Clear Site Data 更适合在意上网被跟踪、希望减少广告干扰的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Auto-Clear Site Data
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Auto-Clear Site Data 是免费的吗?
Auto-Clear Site Data 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Auto-Clear Site Data 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Auto-Clear Site Data 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Auto-Clear Site Data?
在扩展管理页找到 Auto-Clear Site Data,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 8
alarmsbrowsingDatacontextualIdentitiescookiesstoragetabswebNavigationwebRequest
接口权限(可选) 1
notifications


