📜 ⬆️ ⬇️

What we do online. Alternative version

Time counter
image
So, I beg to love and favor - Time Counter . This is a browser extension that collects statistics about time spent on the Internet. I will not write here loud and pretentious words about what a wonderful product. The degree of his "greatness" everyone will determine for himself, I will only describe the main points of his work.

Foreword
Just want to say that initially I was not going to post this material on Habré. It seemed to me that my work was too insignificant and would not be interesting for the local public. But, after reading a recent post on the Opera Software blog, I realized that I was wrong.

Idea of ​​creation
The idea of ​​creation appeared after reading on Habré a post about timeStats . I liked it then, and I decided to make an analogue for “the best browser in the universe” - opera .
')
Installation and use
When installing an extension, a new badge appears on the panel, with the signature of 0:00 . This signature image shows the daily duration of stay on this domain. Accordingly, over time, this value will change.

At the moment, the extension can collect several types of statistics:


General and daily statistics

image
I think everything is clear. Timer count the time spent on the site and write to memory. But my time counting implementation is a bit different from the “competitors”. The extension counts not every second, but every five seconds, and this is saved in the browser’s memory only if you have spent more than one minute on the site on the site. On the one hand, this implementation gives an error in the statistics. It is possible to gain a few minutes with such “short” visits, but they will not be reflected in the statistics. But on the other hand, I see no need to record every second. As a result, all this "garbage" would begin to affect the speed of the browser. I chose speed, to the detriment of accuracy. Later I will work on it.

Custom template
This is a rather exclusive feature that I have not seen from anyone. The original idea belongs to the user operafan.net Dither , for which he thanks a lot. The point is that a person, if he wishes, can set his own template, according to which separate statistics will be collected.

For example: you suddenly wondered how much time you spend on this or that blog on Habré. To do this, using RegExp , we create a separate template. And now, in addition to daily and general, separate statistics on Habr's blogs are being collected.
image
* This statistic was collected before the changes in Habré. Now, unfortunately, to collect such statistics probably will not work.

Charts
All the collected information can be seen on visual graphs. The graph of general statistics for the current day is in a pop-up window, and more detailed information is on the “additional” page. There, in addition to pie charts, you can see the schedule for visiting a particular site.
image
* The button on the top right gives you the opportunity to select a period.

Settings
The extension has several simple settings. They are all contained on a separate page. There is a possibility:

image

Some facts

Thanks for attention
Those who read to the end, thank you for your attention. The extension is available for Opera , but just the other day I ported it to Chrome .

Source: https://habr.com/ru/post/140364/


All Articles