How I Built an Open-Source Browser Extension to Detect AI Slop on YouTube
Description and use
A browser extension that instantly flags AI‑generated YouTube videos using edge computing and caching, helping users avoid low‑value content.
Problem
YouTube users are bombarded with AI-generated videos (“AI slop”) that offer little value, making it hard to identify genuine content quickly.
Outcome
The extension achieves sub‑50 ms thumbnail badging using edge caching, enabling users to instantly see AI‑generated content probability across YouTube feeds.
Workflow
- 1. Load extension content scripts in MAIN and ISOLATED worlds.
- 2. MAIN script extracts captions via YouTube’s player APIs and posts a message.
- 3. ISOLATED script receives transcript, sends batch query to Cloudflare Worker.
- 4. Cloudflare Worker checks D1 cache; if miss, runs Sapling AI classifier and heuristic filters.
- 5. Worker returns AI probability score to extension.
- 6. Extension renders badge on thumbnail and opens popup with sentence heatmap if needed.
Evidence
Stop the Slop is 100% free and open-source under the MIT license.
Sub‑50ms thumbnail badging with Cloudflare Workers and D1.
- Record date: 2026-09-07T02:21:58.558Z