Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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

Article URL: https://github.com/antonpictures/youtube-punisher Comments URL: https://news.ycombinator.com/item?id=50657530 Points: 279 # Comments: 350

YouTube Ad Punisher is an extension that automatically reloads YouTube pages when an ad plays, preserving the playback position. This extension helps to "punish" the ads by reloading the page 1-3 times, allowing the ad slot to be empty and the video to play without interruptions. The extension detects the ad using the .ad-showing class, skip buttons, and ad overlays, capturing the video's current timestamp and saving it to sessionStorage.

If the ad persists after three reload attempts, the extension redirects to an ad-free YouTube mirror. The extension works best in Chrome, but it also functions in Safari with manual testing. The extension does not send any data anywhere and is a client-side, zero-cost workaround. The creator, George Anton, suggests using it in combination with other ad-blocking tools like uBlock Origin, SponsorBlock, and a manual testing tool for Safari.

Rewritten by urgent.news; may contain errors — check the original.

Source: github.com

Read the original at github.com →

Report a problem with this story

More in Tech

More from Thursday 26 November →