Giter Club home page Giter Club logo

secure-browser-kiosk's Introduction

Secure Browser Kiosk

Restart Chrome in incognito mode by prompting the user if they need more time.

Build Licence

Showcase

Secure Browser Kiosk is a macOS script that opens and closes Chrome in incognito mode and removes the user's downloads after prompting if the user needs more time (after 5 minutes of use) and they answer no.

Install

# Setup the tap
brew tap justintime50/formulas

# Install the tool
brew install secure-browser-kiosk

To ensure the script can run uninterrupted, we'll need to do a few things first:

Ensure that all screen savers and timeouts for logout on your computer are turned off. If they are not, the script will be interrupted. These can be found in various places:

  1. System Preferences -> Desktop & Screen Saver -> Start after: none (found in the bottom left corner)
  2. System Preferences -> Energy Saver -> Never turn off or put to sleep
  3. Security & Privacy -> Advanced -> Logout after settings (this can be turned on if you plan to use the script as a login item since it would be restarated after login anyway.)

Usage

Either run the script as standalone or copy and load the Launch Agent (recommended).

Pass an optional seconds argument to override the default 300 (5 minutes) timeout.

Standalone

secure-browser-kiosk 600

Launch Agent (Recommended)

Loading Secure Browser Kiosk as a Launch Agent will hide any terminal actually running the script and will keep the script running once loaded. If loaded, the script will start automatically upon login.

NOTE: Make sure to update the plist script path in local.secureBrowserKiosk.plist before copying.

# Copy the plist to the Launch Agent directory
cp src/local.secureBrowserKiosk.plist ~/Library/LaunchAgents

# use `load/unload` to add/remove the script as a Launch Agent
launchctl load ~/Library/LaunchAgents/local.secureBrowserKiosk.plist

# To `start/stop` the script from running, use the following
launchctl start local.secureBrowserKiosk.plist

secure-browser-kiosk's People

Contributors

justintime50 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.