Page Time Tracker with Summary and Pie Chart

Track and display time spent on the page in the title bar, group by domain, show a summary with a pie chart including percentages, and allow data deletion

Author
gura8390
Daily installs
0
Total installs
19
Ratings
0 0 0
Version
1.7
Created
2024-07-08
Updated
2024-07-08
License
MIT
Applies to
All sites

Page Time Tracker with Summary and Pie Chart

This script is a Tampermonkey userscript designed to display the time spent on the current page in the browser's title bar. It groups the data by domain and shows a daily summary with a pie chart including percentages. Users can also delete all data via menu commands.

Features

  • Time Tracking: Displays the time spent on the current page in the title bar in real-time.
  • Data Storage: Stores visit data upon page unload, including URL, page title, time spent, and visit date.
  • Data Grouping: Groups visit data by domain and calculates total time spent for each domain.
  • Daily Summary: Displays a daily summary page, including a table of time spent by domain and a pie chart with percentages.
  • Data Management: Provides menu commands to view the daily summary and delete all data.

Usage

  • Install the Tampermonkey browser extension.
  • Create a new userscript and paste the script code.
  • Save and enable the script.
  • While browsing, the page title will display the time spent on the current page.
  • Use the Tampermonkey menu to view the daily summary or delete all data.

Please note that any data collected by this script can be deleted by the user and is not transmitted to the cloud, remaining only on the user's local machine.