Back to selected workAI & Machine Learning

Reel & Shorts Blocker Extension

Browser productivity extension blocking addictive short-form video feeds

A lightweight browser extension that dynamically identifies and intercepts infinite-scroll short-form video containers across web platforms to protect deep engineering focus.

CATEGORY / TYPEAI & Machine Learning
TECH STACK
JavaScriptWebExtensions APIDOM MutationObserverCSS
ARTIFACT / DISTRIBUTIONProduction Web Application
The Problem

Algorithmic short-form video feeds intentionally hijack user attention and disrupt sustained cognitive focus during study and programming sessions.

The Solution

Developed a WebExtensions-compliant JavaScript extension utilizing the DOM MutationObserver API. It monitors dynamic single-page application navigations and removes short video containers before they render.

Architecture & Workflow Pipeline
11. Content Script: Injected into matching target hosts upon page initialization
22. MutationObserver: Watches DOM tree mutations to catch client-side rendered video feeds
33. Pattern Matcher: Identifies URL routes (`/shorts/`, `/reels/`) and video card selectors
44. Redirection / Suppression: Gracefully removes elements and redirects to subscription feeds
Key Features & Highlights
Zero-performance overhead: lightweight pure vanilla JavaScript execution
Works reliably across Chromium and WebExtensions-compatible browsers
Custom toggle switch to enable/disable focus mode with 1 click
Preserves regular video watching and educational search capabilities
Challenges Overcome
  • •Keeping selector rules robust against frequent frontend obfuscation updates by major video platforms.
  • •Preventing visual flicker by applying CSS display injection rules before script execution.
Verified Outcomes & Impact
  • ✓Active personal and peer productivity utility saving hours of passive screen distraction.
  • ✓Open-sourced on GitHub with clean installation instructions.