DailyCacheCleaner by tac25
指定した時刻に履歴、キャッシュを自動削除します。 Cookieはオプションになっています。 3分後にテスト実行で短時間で動作確認ができるようになっています。 毎日自動的に実行されるのでブラウザを軽快に保つことができます。
Extension Metadata
Permissions and data
Required permissions:
- Clear recent browsing history, cookies, and related data
- Display notifications to you
Data collection:
- The developer says this extension doesn't require data collection.
More information
- Add-on Links
- Version
- 1.1
- Size
- 34.1 KB
- Last updated
- 6 days ago (Oct 19, 2026)
- Related Categories
- License
- Mozilla Public License 2.0
- Version History
- Add to collection
1. アーキテクチャとAPI要件:
本拡張機能は Manifest V3 規格に基づいて開発されています。
主な処理には browser.browsingData、browser.alarms、browser.storage、および browser.notifications API を使用しています。
バックグラウンドスクリプト(background.js)は browser.alarms API を利用して、ユーザーが指定した実行時刻(例: 09:00, 12:00 等)およびテスト用アラームを保持・監視します。
アラームが発火すると、browsingData.remove() 関数が呼び出され、閲覧履歴(history)、キャッシュ(cache)、ストレージ(indexedDB / localStorage)、およびフォーム自動入力データ(formData)の削除処理がローカル上で実行されます。
Cookie の削除処理はオプション化されており、ユーザーが設定画面で有効にした場合のみ実行される仕様となっています。
ユーザーのスケジュール設定およびオプションフラグは、すべて browser.storage.local 内に安全に保持されます。
Chrome / Gecko(Firefox)間の API 名前空間の差分を吸収するため、typeof browser !== "undefined" ? browser : chrome の互換ラッパーを実装しています。
4.セキュリティとプライバシー:
リモートコードの動的ロード、eval() などの動的実行構文、外部ライブラリは一切使用していません。
ユーザーデータの収集、ログ解析、外部サーバーへの通信処理は含まれておらず、すべてのロジックは完全なローカル環境で完結します。
Technical Details & Architecture:
1. Architecture & API Usage:
Built on Manifest V3 using standard WebExtensions APIs: browser.browsingData, browser.alarms, browser.storage, and browser.notifications.
The persistent logic in background.js manages scheduled cleanup jobs using the browser.alarms API based on user-defined hours.
Upon alarm triggers, browsingData.remove() clears browsing history, cache, storage (IndexedDB/LocalStorage), and form auto-fill data locally.
Cookie deletion is configurable and disabled by default, executing only when explicitly checked by the user.
User schedule preferences and settings are stored locally using browser.storage.local.
Includes a runtime API wrapper (typeof browser !== "undefined" ? browser : chrome) to ensure standard execution across both Chromium and Gecko engines.
No remote code execution, no dynamic evaluation (eval), and zero third-party dependencies.
Operates strictly offline without collecting or transmitting any user data.