https://github.com/rafeyosa/youtube-usage-tracker
YouTube Usage Tracker (Chrome Extension)
https://github.com/rafeyosa/youtube-usage-tracker
Last synced: 29 days ago
JSON representation
YouTube Usage Tracker (Chrome Extension)
- Host: GitHub
- URL: https://github.com/rafeyosa/youtube-usage-tracker
- Owner: rafeyosa
- License: mit
- Created: 2025-03-04T11:11:59.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T11:29:07.000Z (about 2 months ago)
- Last Synced: 2025-03-04T12:26:10.325Z (about 2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTube Usage Tracker (Chrome Extension)
A Chrome extension that tracks how many times YouTube has been opened and the total time spent watching videos. The timer only runs when a video is playing and pauses when the video is stopped or the tab is closed.
## Features
- Tracks how many times YouTube is opened
- Measures total watch time in real-time
- Stops counting when a video is paused or YouTube is closed
- Displays tracked data in a popup UI
## Installation
- Open Google Chrome and navigate to chrome://extensions/.
- Enable Developer mode (toggle at the top right corner).
- Click Load unpacked and select the extension folder.
- The extension should now be installed and ready to use.## Usage
- Open YouTube and play a video.
- Click on the extension icon to view usage stats.
- The popup will show:
- Times YouTube has been opened
- Total time watched (in hh:mm:ss format)
- Close the popup and continue watching; the timer updates automatically.## Permissions Required
- storage: To store watch time and open count.
- tabs: To detect when YouTube is opened or closed.
- host_permissions: To interact with https://www.youtube.com/*## Future Improvements
- Add daily, weekly, and monthly stats
- Provide options to reset or export data
- Support for dark mode UI## Contributing
Pull requests are welcome! If you find any issues or have suggestions, feel free to open an issue.Happy tracking! 🎥📊