Projects

youtube-history-extension

A Chrome extension that logs your YouTube watch history.

Overview

A Chrome extension that reads your YouTube history page and keeps a list of the videos you watched, without the YouTube API. It can also send that history to a local API, for a chatbot or another app. It runs in your browser, and the example API keeps the data on your machine.

How it works

  • Runs when you open your YouTube history page, and keeps scanning as you scroll.
  • Logs up to 200 videos per run and stores the 100 most recent.
  • The popup shows each video’s title, channel and time.
  • Optionally sends new videos to a local API. An example Node.js server is included.

Features

  • Deduplication that keeps the original order.
  • Tracks which videos were already sent, so none is sent twice.
  • Sends data only when new videos appear.
  • Refreshes every minute to catch new videos.