# YouTube Ad Punisher – Auto\-reloads YouTube pages when an ad plays

- HackerByte page: <https://hackerbyte.net/en/stories/a-browser-extension-that-automatically-reloads-youtube-pages-when-an-ad-is-detec-50657530>
- Original source: <https://github.com/antonpictures/youtube-punisher>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50657530>
- Submitted to Hacker News: 2026-11-26T17:36:47.000Z

A browser extension that automatically reloads YouTube pages when an ad is detected.

## AI-generated summary

YouTube Ad Punisher is a browser extension designed to automatically reload YouTube pages when an advertisement begins playing. It preserves the video's playback position by capturing the timestamp before reloading and automatically seeking back to that point once the page reloads. If reloads fail to remove the ad, it redirects to an ad\-free mirror of YouTube as a fallback.

## Key points

- Automatically reloads YouTube pages when ads are detected.
- Preserves playback position by capturing and restoring timestamps.
- Uses a fallback to an ad\-free mirror if reloads fail.
- Collects and allows export of ad data including advertiser and duration.
- Works client\-side without network blocking, avoiding detection.
