Block YouTube in work hours with a Chrome extension
A user watched too many YouTube videos in self-set work hours and asked Claude Code to build a Chrome extension. It is active from 06:00 to 19:00, blocks YouTube, shows a reminder to work, and can lift for 60 minutes if he types why he needs the page. He writes that watch time fell sharply, and that it was not hard to build himself.
Done with Claude CodeModerate
What was done
A user watched too many YouTube videos in self-set work hours and asked Claude Code to build a Chrome extension. It is active from 06:00 to 19:00, blocks YouTube, shows a reminder to work, and can lift for 60 minutes if he types why he needs the page. He writes that watch time fell sharply, and that it was not hard to build himself.
How to do it
- Paste the prompt into the tool, and replace the text in brackets with your own.
- Read the answer through. Do not send, delete or publish anything until you have seen it yourself.
- Check the original before you trust a figure, a name or a date.
Try it with Claude Code
Build a Chrome extension that between [start] and [end] blocks [site]. Show a short message when I try to open it. Let me temporarily open the page for [minutes] minutes only if I type a reason. Do not log the content of pages I visit. Show me the code and how I install it locally before anything is uploaded. You are done when the extension runs in Chrome and blocks inside the time window.
Replace text in brackets with your own.
@UrbanGibon on X ·