Skip to content
spencermaccaPublic
forked from pc035860/YCS-cont

About

Chrome Extension: YCS. Search for comments and authors in YouTube videos

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

212 Commits

Folders and files

Repository files navigation

YCS-Continued

Source-based development repository. Main branch: v2-source

Installation

Download the extension from official stores:

Project Background

This repository is the source-based continuation of YCS (YouTube Comment Search) extension.

Status:

  • Main development branch: v2-source
  • Supported browsers: Chrome 88+ (Manifest V3), Firefox
  • Original project: sonigy/YCS
  • Migrated from ycs_cont_migration branch to single-repo structure

The extension enables searching, filtering, and exporting YouTube comments, replies, chat replays, and video transcripts, with continuous fixes for YouTube API changes (2024-2025).

What's New Since the Original

User-facing improvements added on top of the original YCS source (sonigy/YCS, last upstream commit Oct 2024).

Keeping up with YouTube

  • Comment loading migrated to YouTube's Innertube API, tracking its format changes through 2024-2026
  • Works across YouTube's SPA navigation — switching videos no longer needs a page reload
  • Support for member-only videos, age-restricted videos, and multi-account sessions
  • Chat replay falls back to an HTML path for logged-out users
  • Comment loading fixed for currently-live videos

More content you can search

  • Community Post comments — a source the original never covered
  • Nested replies (subThreads), so deeper reply chains are searchable
  • Live chat recording for ongoing live streams, not just chat replay
  • Shorts pages get dedicated support, with a toggle to turn it off entirely

Search

  • Instant Search — searches via the YouTube Data API before the full comment archive finishes downloading, so you get results without waiting
  • Faster repeat searches through result caching
  • New filters: timestamp visualization, plus optional quick-jump buttons for chat and transcript
  • Exact-match option for text highlighting
  • Timestamp comments can be sorted by video time instead of post time
  • A clear button on the search box, with clearing the text and clearing the filter kept as separate actions

Export

  • Export format picker (.TXT / .JSON / .XLSX) moved into a dropdown
  • Transcripts can be exported as .SRT subtitles

Options

The original had four settings. There are now eighteen, including:

  • Drag-and-drop reordering and on/off toggles for every filter button
  • A cap on how many comments autoload fetches
  • Mount YCS in the sidebar instead of the main column, and optionally hide the Sidebar/Main toggle button
  • Start collapsed by default, with a separate setting for Shorts pages
  • Preferred transcript language
  • Auto-expand the parent-comment context for replies
  • Your own YouTube Data API key, with independent switches for full loading and Instant Search

Development Setup

Prerequisites

  • Node.js 22+ (defined in app/.nvmrc)
  • npm

Installation & Build

All development commands run from the app/ directory:

# Install dependencies
cd app
npm ci

# Development build (watch mode, HMR disabled)
npm run dev

# Production build → app/dist/
npm run build

# Clean cache and rebuild
npm run rebuild

# Lint check
npm run lint

# Type checking
npm run typecheck

# Format code with Prettier
npm run format
npm run format:check

# Clean all build artifacts
npm run rm

# Run tests with Node.js test runner
npm test

Load Extension in Browser

  1. Build the extension: cd app && npm run build
  2. Open browser extension page:
    • Chrome: chrome://extensions
    • Firefox: about:debugging#/runtime/this-firefox
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select app/dist/ directory

Release Workflow

From project root, use the Makefile:

make release TYPE=patch   # Auto bump, commit, tag, build, package
make release TYPE=minor
make release TYPE=major

This will:

  • Update version in app/manifest.json and app/manifest.firefox.json
  • Create git commit and tag
  • Build both Chrome and Firefox versions
  • Package as .zip files in packing/ directory

Manual build (if needed):

./scripts/build-extension.sh chrome    # or firefox
./scripts/package-extension.sh chrome  # or firefox

Technical Documentation

Architecture Overview

Three-layer communication model:

YouTube.com Page
  ├─ web-resources.ts (Web Page Layer)
  │  └─ Search logic, UI rendering, Fuse.js integration
  │  └─ window.postMessage() ↕️
  ├─ content-scripts.ts (Content Script Layer)
  │  └─ Message relay, script injection management
  │  └─ chrome.runtime.sendMessage() ↕️
  └─ background.ts (Service Worker)
     └─ IndexedDB cache, storage monitoring, badge updates
     └─ YouTube Data API requests (API key stored securely)

Why this structure? Manifest V3 security restrictions require web page code to run in isolated context. The content script acts as a secure bridge between web page and extension background. For YouTube Data API integration, API keys are stored securely in the background and never exposed to the web page.

Build system: Parcel 2.0.1 with TypeScript (ES6 target, strict mode)

Storage: IndexedDB cache with auto-cleanup (200 MB quota limit, configurable in options)

YouTube Innertube API Integration

The extension integrates with YouTube's internal Innertube API for comments, chat replays, and transcripts.

Documentation:

Credits

  • Original YCS by sonigy
  • YCS-Continued maintained by pc035860

About

Chrome Extension: YCS. Search for comments and authors in YouTube videos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages