YouTube Ad Punisher reloads YouTube pages when an ad plays
YouTube Ad Punisher is an open source Chrome extension for YouTube, shared on GitHub under the MIT license. When an ad appears, it saves the current playback time, reloads the page, and YouTube seeks back to that point so the video resumes. According to the README, after three reloads it switches to a helper tab for four seconds, and if the ad still plays, it redirects to yout-ube.com, an ad-free mirror.
The extension detects ads by watching for the .ad-showing class, skip buttons and ad overlays every 500 milliseconds, using a MutationObserver[1]. The position is kept in sessionStorage[2] and a 3-second cooldown prevents reload loops. The author says that one or two reloads usually clear the ad, and that every ad is logged locally with advertiser, duration and timestamp, with data exportable as JSON or CSV.
The author says Chrome is fully reliable, while Safari blocks the extension from auto-injecting and needs a separate AppleScript watcher, which may require manual testing. The author describes the reloads as a passive protest: if many users did this, reloads would cost YouTube more than ad views bring in.
Read the original github.comDiscussion
Sources
-
GitHub
YouTube Ad Punisher – Auto-reloads YouTube pages when an ad plays
-
KRGeekNews KO
YouTube Ad Punisher - 광고가 재생되면 YouTube 페이지를 자동으로 새로고침
Terms
- anti-adblock system — Code on a website that detects ad blockers and tries to block or warn about them.
