Code Monkey home page Code Monkey logo

browser-man-switch's Introduction

browser-man-switch

A Dead Man's Switch to clear your browser history on OSX. Note: Currently only works with Chrome

If she murders me, tell Jean-Ralphio to clear my browser history.

-- Tom Haverford

Intro

This is a python script that periodically checks the last time you've used a web browser. If that time is greater than a certain threshold, you are presumed dead, and any browser history is deleted.

Usage

Installation

Clone this repository to a nice place with

git clone git://github.com/mathisonian/browser-man-switch.git

Move into that directory with cd browser-man-switch and you are ready to start.

Running

This is a command line python program. Run like so:

python history-cleaner.py --chrome --time 7 --daemon

This will cause the process to start in the background as a daemon, clearing your chrome history if chrome isn't used for 7 or more days.

Options

  • time - Time in days to wait before assuming you are dead. Can be fractional (eg 7.5). Defaults to 7 days
  • chrome - Actively monitor chrome
  • firefox - Actively monitor firefox
  • safari - Actively monitor safari
  • daemon - Run as a background process. Defaults to foreground mode.

If one of chrome, firefox, or safari, is not flagged, chrome will be assumed. You can do any combination of the three.

Running on Startup

It is important that you have this setup to run on startup. To do so, add the following to your crontab file (stored in /etc/crontab). Make sure to edit as root.

@reboot python /path/to/history-cleaner.py <options>

Author

License

Copyright © 2013 Matthew Conlen

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the WTFPL, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/ for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.