This project helps to control time was spent on sites. It requires special extension for Chrome browser.
Install extension for Chrome browser Custom JavaScript for websites.
Open configuration of cjs browser extension on the site you want to controll. Click on the link "your own external scripts", add path https://rawgit.com/aleksei-g/34_timemachine/master/index.js. Don`t forget to press "enable cjs for this host" to enable custom JS.
After that, a timer will appear on the page, which will count down for 5 minutes. After resetting the timer, motivating notifications will be displayed every 30 seconds.
For faster development you can use JS code hosted on localhost. Simple web server can be used for that, run:
python3 -m http.server
Add path http://localhost:8000/index.js
to cjs browser extension. Done.
The code is written for educational purposes. Training course for web-developers - DEVMAN.org