How raman-at-pieces/youtube-bookmarker-finished-code works
This is a Chrome extension for bookmarking timestamps in YouTube videos. The workflow is: detect a YouTube watch page, initialize the content script for its video, save timestamped bookmarks, then view, play, or delete them from the popup. The graph also shows the popup’s active-tab lookup and shared synchronized storage. The README is empty; relationships are limited to those supported by the sampled source files.
Main entry points: contentScript.js Bookmark controls · popup.js Bookmark popup · background.js Watch-page detection · utils.js Active-tab lookup
Components 8
Page integration
- YouTube page
- Watch-page detection
background.js - Bookmark controls
contentScript.js
Popup experience
- Bookmark popup
popup.js - Active-tab lookup
utils.js
Browser services
- Chrome tabs API
- Chrome sync storage
Other components
- User
Connections 13
- YouTube page → Watch-page detection: updates tab
background.js - Watch-page detection → Chrome tabs API: sends NEW
background.js - Chrome tabs API → Bookmark controls: delivers message
contentScript.js - Bookmark controls → YouTube page: adds controls
contentScript.js - User → Bookmark controls: sets bookmark
contentScript.js - Bookmark controls → Chrome sync storage: reads and writes
contentScript.js - User → Bookmark popup: uses controls
popup.js - Bookmark popup → Active-tab lookup: gets active tab
popup.js - Active-tab lookup → Chrome tabs API: queries tab
utils.js - Bookmark popup → Chrome sync storage: loads bookmarks
popup.js - Bookmark popup → Chrome tabs API: sends PLAY or DELETE
popup.js - Bookmark controls → YouTube page: seeks player
contentScript.js - Bookmark controls → Chrome sync storage: deletes bookmark
contentScript.js