Skip to content

A chrome extension to prevent users from using the browser after bedtime.

License

Notifications You must be signed in to change notification settings

albertpatterson/bedtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bedtime

A chrome extension to prevent users from using the browser after bedtime. Allows users to create an arbitrary number of alarms active on days of the users choosing. When bedtime is near a warning prompting the user to conclude their activity will be shown, and thereafter whenever a window loads the warning is again shown. When bedtime arrives, the content of all pages will be hidden in order to render the browser unusable so that the user is not tempted to stay up past bedtime.

Prerequisites

The Chrome browser: download

Installation

Install via one of the following:

  • From the Chrome Web Store
  • From local files
    1. Clone this repository
    2. Build the project via npm run build
    3. Open chrome://extensions/
    4. Choose "Load Unpacked" and select this project's "dist" folder

Usage

  • Set a bedtime alarm via the extension popup: Set a bedtime alarm via the extension popup
    • multiple alarms can be added and deleted as needed
    • alarms can be set to only activate on certain days
  • A warning is shown when bedtime is near: A warning is shown when bedtime is near
    • this warning will be shown automatically 1 hour from bedtime as well as every time a page loads
    • this should make it possible to continue using the browser while keeping in mind that the user should begin wrapping up
  • The contents of the page is hidden once bedtime arrives: The contents of the page are hidden once bedtime arrives
    • this should render the browser unusable so that the user will not be tempted to stay up past bedtime

Development

  • Build the unpacked extension via npm run build
  • Build the unpacked extension and watch for changes via npm run dev
  • Build the unpacked extension and zip the extension as required for submission to the chrome web store via npm run build-prod

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A chrome extension to prevent users from using the browser after bedtime.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published