Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Rayquaza01/HistoryCleaner

Firefox addon that deletes history older than a specified amount of days.
https://github.com/Rayquaza01/HistoryCleaner

addon browser extension firefox-addon history

Last synced: 20 days ago
JSON representation

Firefox addon that deletes history older than a specified amount of days.

Awesome Lists containing this project

README

        

# HistoryCleaner
[![](https://img.shields.io/amo/v/history-cleaner)](https://addons.mozilla.org/en-US/firefox/addon/history-cleaner/)
[![](https://img.shields.io/chrome-web-store/v/epoabannnmjdknejdggkgjoebomipene)](https://chrome.google.com/webstore/detail/history-cleaner/epoabannnmjdknejdggkgjoebomipene/)

Firefox addon that deletes history older than a specified amount of days.

## Options

* Behavior
* Decides what history the extension will delete when it triggers.
* Either disabled, delete old history, or delete all history.
* Defaults to disabled, so the extension doesn't do anything until you configure it.
* Number of Days to Keep History
* Delete history older than midnight on the specified number of days ago.
* Only has effect if behavior is set to delete old history.
* Defaults to 0.
* Trigger Mode
* Whether the extension triggers on idle, on browser startup, or at a set interval.
* Defaults to idle (Firefox)
* Defaults to timer (Chrome)
* Idle Length (Firefox Only)
* Amount of time in seconds the browser should idle before triggering.
* Only has effect if trigger mode is set to idle.
* Defaults to 60, minimum 15.
* Timer Interval
* Interval in minutes between triggering.
* Only has effect if trigger mode is set to timer.
* Defaults to 1440 (24 hours), Minimum 1

## Permissions

* `history`
* Used to clear browser history
* `storage`
* Used to save user options
* `idle`
* Used to detect when the browser is idle for the idle trigger mode
* `notifications`
* Used to send a notification when history is cleared
* Notifications are only sent if the user enables notifications in options
* `downloads`
* Used to clear download history
* Download history is only cleared if user enables the option
* `alarms`
* Used to set a timer for the timer trigger mode.

## Building and Running

Clone this repository, and run `npm install` to install necessary dependencies and build tools.

* `npm run build:ff:watch` will build the extension in watch mode for development.
* `npm run build:ff:prod` will build the extension for production.
* `build:cr:watch` and `build:cr:prod` will build the manifest v3 version of the extension for Chrome.
* The manifest v3 (Chrome) source is located under `./cr-src/`, whereas the manifest v2 (Firefox) source is under `./src/`
* `npm run firefox` will load `./dist/` as a temporary extension in Firefox.

## Acknowledgements

Icons used in History Cleaner are from [Pictogrammers](https://pictogrammers.com/). ([Pictogrammers Free License](https://pictogrammers.com/docs/general/license/))

## Links

[![](https://raw.githubusercontent.com/Rayquaza01/HistoryCleaner/master/src/icons/amo.png)](https://addons.mozilla.org/en-US/firefox/addon/history-cleaner/)
[![](https://raw.githubusercontent.com/Rayquaza01/HistoryCleaner/master/src/icons/cws.png)](https://chrome.google.com/webstore/detail/history-cleaner/epoabannnmjdknejdggkgjoebomipene/)