Skip to content

JOIN THE GITTER ROOM: https://gitter.im/Control-Yourself/Lobby Control yourself is a software which helps you reduce distractions by blocking several non-productive websites.

License

Notifications You must be signed in to change notification settings

fmgono/Control-Yourself

 
 

Repository files navigation

Control-Yourself

Control Yourself

All Contributors Gitter chat

GitHub issues GitHub forks GitHub stars GitHub license

HitCount Maintenance Website shields.io Ask Me Anything !


forthebadge

A Software to reduce your distraction caused by several non-productive websites

Prerequisites

  • Git
  • NodeJs

Getting Started

Make sure that you have installed git and nodejs on your system. Make a fork of this repository. Open up the Terminal(or Git Bash) and navigate to the working directory and type the following command.

git clone https://github.com/{USERNAME}/Control-Yourself.git

Make sure to replace the {USERNAME} with your github username.

Then run the following command to install all the dependencies.

npm install

Run the following command to fire up the application

npm start

Steps to run the blocker.js

Running the blocker is very simple. Just download the blocker.js file (inside JavaScript folder) and type in the following command through your terminal,

sudo node blocker.js

It will block the websites in the websites array in blocker.js file from 2pm to 6pm.

Note If you want to block some other websites, just place those websites in the websites array at line number 21 of blocker.js file. And, if you want to change the time at which the program blocks the website, just change the time interval inside the if statement at line number 33. By default the script blocks www.someRandomWebsite.com (I dont know what that is, as the name suggests it is SOME RANDOM WEBSITE xD), and it blocks it from 1400 hours (2pm) to 1600 hours (4pm).

Important Notice

Please take a backup of your hosts file (/etc/hosts) before running the script. I am not responsible for any damages.

Contributors

Thanks goes to these wonderful people (emoji key):


MADHAV BAHL

📖 📝 💻 💡 🤔 👀

Rajdeep Roy Chowdhury

📖 💻 🤔

Rajat

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

About

JOIN THE GITTER ROOM: https://gitter.im/Control-Yourself/Lobby Control yourself is a software which helps you reduce distractions by blocking several non-productive websites.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.1%
  • Python 41.5%
  • HTML 5.4%