HeadlinesBriefing favicon HeadlinesBriefing.com

Engineer Creates Tool to Block **YouTube Shorts**

DEV Community •
×

A Senior Engineer developed Blokr, a tool that selectively blocks YouTube Shorts without disrupting the entire app. Frustrated by the distraction of Shorts while needing YouTube for learning, the engineer crafted a precise solution. Unlike traditional app blockers, which disable the entire application, Blokr uses an Android Accessibility Service to surgically remove specific parts of the UI.

Blokr operates by intercepting UI elements at a granular level. It listens for changes in the window content and compares them against a database of blacklisted features. When a targeted element, like the Shorts tab, is detected, Blokr triggers a global back action, preventing access. The tool is driven by a remote database, allowing for updates without requiring app store releases, making it adaptable to frequent app updates.

The engineer's motivation stems from personal experience with dopamine addiction from social media. By sharing the tool and its code, they invite the community to contribute to a global blacklist, targeting specific features across major apps. This collaborative approach aims to help users regain control over their digital experiences.

Looking ahead, the success of Blokr could inspire similar tools for other platforms, potentially reshaping how users interact with social media. The engineer's work underscores the growing need for digital well-being solutions in an increasingly connected world.