MohamedSayed0573/TubeSize_Extension
Über uns
Track how much internet data every website uses, and see what a YouTube, Twitch, or Kick video will cost before you press play.
Design und MedienGemessener Sternzuwachs
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalTubeSize
Know where your internet data goes, before and after.
Track how much data every website uses, and see the estimated data cost of a YouTube, Twitch, or Kick video before you press play. Built for people with a monthly data cap.
Two tools in one
See where your internet data went
Track usage across all websites and find out which ones eat your quota.
See what a video will cost before you watch
Get estimated data usage for every quality on YouTube, Twitch, and Kick.
Installation
|
Chrome Web Store Install the Chromium build for Chrome. |
Firefox Add-ons Install the Firefox package from Mozilla Add-ons. |
Edge Add-ons Install the Chromium build for Microsoft Edge. |
Screenshots
Features
Usage tracking
- All-Sites Data Tracking: See how much data every website you visit consumes, so you know what is using up your monthly quota.
- Usage Dashboard: Track your daily data usage across:
- Today, Last 7 Days, Last 30 Days, and Lifetime totals.
- Interactive daily bandwidth consumption graphs built with Recharts.
- Per-site breakdown of data consumed.
- For YouTube, a granular breakdown of videos watched with thumbnails, channel names, and measured data consumed.
- Dynamic Badge Counter: View your real-time cumulative daily data usage directly on the extension icon's badge (e.g.,
1.2Gor450M).
Video size estimates
- YouTube Quality Estimates: View calculated file sizes for standard resolutions on video pages, Shorts, and Live streams.
- Twitch Stream Diagnostics: Compare data consumption across resolutions for live streams and VODs.
- Kick Platform Support: Compare data usage estimates for Kick live streams and VODs using HLS stream bandwidth profiles.
- Quality Menu Integration: Embed calculated file size details directly inside YouTube's native player settings and quality selection dropdowns.
- Bandwidth Warning Toasts: Set data thresholds in Settings and receive automated notifications if a stream's bitrate exceeds your limits.
Permissions
The manifest (wxt.config.ts, Manifest V3) declares exactly:
permissions: ["activeTab", "storage", "webRequest"]plus"favicon"on Chromium onlyhost_permissions: ["<all_urls>"]
| Permission | Why |
|---|---|
activeTab |
Temporary access to the active tab when you open the popup (Alt+P) to detect YouTube/Twitch/Kick URLs, query the current resolution, and open dashboard/popup routes. No persistent tabs permission is requested. |
storage |
chrome.storage.local holds the stream metadata cache (youtube:/twitch:/kick: keys with TTL); chrome.storage.sync holds user settings (alert threshold, cache duration, language). |
webRequest |
Background chrome.webRequest.onCompleted listener on <all_urls> reads Content-Length response headers and attributes bytes per request initiator. Responses without Content-Length (chunked/live streams) are counted instead by the page-world fetch/Worker patch. |
favicon (Chromium only) |
Resolves per-site icons in the popup/dashboard via chrome.runtime.getURL("/_favicon/"). Firefox has no /_favicon/ endpoint, so the popup requests the open site's <origin>/favicon.ico directly (typically browser-cached), then a placeholder, and the dashboard shows a placeholder without any website requests. No third-party icon service is used. |
host_permissions: <all_urls> |
Enables all-sites usage tracking and size-estimate fetches (YouTube/Twitch/Kick pages, stream APIs, and HLS CDNs). Video overlay only runs on YouTube, Twitch, and Kick pages. |
See PRIVACY.md for details on what is stored and why.
Technology Stack
| Layer | Technology |
|---|---|
| Frontend & UI | React, TypeScript, WXT, React Router, TanStack Query, Recharts, Tailwind CSS, chrome.i18n |
| Storage | Dexie (IndexedDB), chrome.storage.local / sync |
| Data parsing | Zod, m3u8-parser, cheerio, tldts |
| Testing | Bun test runner |
| Tooling | oxlint, Knip, bun fmt, Husky |
| Packaging / CI | WXT Manifest V3 builds, GitHub Actions |
Author
Mohammed Sayed
- GitHub: @MohamedSayed0573
- LinkedIn: mohamed-sayed3
- Support: ko-fi.com/mohamedsayed253
License
Ähnliche Projekte entdecken
Wird geladen…