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

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

当广告播放时自动重新加载 YouTube 页面——保留您的播放进度。惩罚这些广告。

Ad density on YouTube is channel-dependent and changes over time — some channels front-load several ads, others run none. Traditional ad blockers can get detected by YouTube’s anti-adblock system (“Ad blockers are not allowed here”), and the skip button takes a few seconds to appear. You sit there, hostage.

YouTube 上的广告密度取决于频道且会随时间变化——有些频道会在开头放置多个广告,而有些则完全没有。传统的广告拦截器可能会被 YouTube 的反拦截系统检测到(提示“此处不允许使用广告拦截器”),而且跳过按钮需要几秒钟才会出现。你只能坐在那里,像个人质一样。

Reload the page. That’s it. Two reloads and the ad is gone. Every time.

重新加载页面。就是这样。重新加载两次,广告就会消失。每次都有效。

🎯 YouTube Ad Punisher automates this: the moment an ad appears, it captures your exact playback timestamp, reloads the page, and YouTube auto-seeks back to where you were. No ads. No waiting. No skip button hunting.

🎯 YouTube Ad Punisher 将此过程自动化:当广告出现时,它会捕获您精确的播放时间戳,重新加载页面,然后 YouTube 会自动跳转回您之前的位置。没有广告。无需等待。无需寻找跳过按钮。

Auto escape: after 3 reloads, the extension automatically switches to a helper tab for 4 seconds (George’s discovery, now automated), then switches back. No manual tab switching needed.

自动逃逸:重新加载 3 次后,扩展程序会自动切换到辅助标签页 4 秒(这是 George 的发现,现已自动化),然后切回原页面。无需手动切换标签页。

Ads keep coming after reload? Switch to another tab for a few seconds, then switch back. Chrome throttles background tabs, which lets the ad state settle — George discovered this works every time.

重新加载后广告还在?切换到另一个标签页几秒钟,然后再切回来。Chrome 会限制后台标签页,这能让广告状态稳定下来——George 发现这招每次都管用。

Incognito: see the Incognito section above.

无痕模式:请参阅上方的“无痕模式”部分。

Reload (primary) — reloads the page 1-3 times. YouTube re-evaluates ad serving on each reload; after 1-2 cycles the ad slot is empty and the video plays clean. Timestamp is preserved via &t=Xs URL param + JS seek.

重新加载(主要方式)——重新加载页面 1-3 次。YouTube 会在每次重新加载时重新评估广告投放;经过 1-2 个周期后,广告位就会变空,视频即可正常播放。时间戳通过 &t=Xs URL 参数和 JS 跳转来保留。

yout-ube.com redirect (fallback) — if reloads don’t clear the ad after 3 attempts, redirects to yout-ube.com (an ad-free YouTube mirror). The URL includes &loop=0 to prevent the infinite replay issue that the mirror has by default.

yout-ube.com 重定向(备用方式)——如果重新加载 3 次后仍无法清除广告,则重定向到 yout-ube.com(一个无广告的 YouTube 镜像站)。URL 中包含 &loop=0,以防止该镜像站默认存在的无限循环播放问题。

Detect — watches for .ad-showing class, skip buttons, and ad overlays (every 500ms + MutationObserver)

检测——监视 .ad-showing 类、跳过按钮和广告覆盖层(每 500 毫秒一次 + MutationObserver)。

Capture — grabs video.currentTime and saves it to sessionStorage

捕获——获取 video.currentTime 并将其保存到 sessionStorage 中。

Reload — location.replace() with &t=Xs in the URL

重新加载——使用 URL 中的 &t=Xs 执行 location.replace()。

Restore — YouTube auto-seeks to the timestamp; playback resumes

恢复——YouTube 自动跳转到该时间戳;恢复播放。

Cooldown — 3-second guard prevents reload loops

冷却——3 秒保护机制,防止重新加载循环。

Safari blocks ad-hoc signed extensions from auto-injecting into YouTube. As a workaround, use the JS overlay + AppleScript watcher (yt-ad-watch.sh):

Safari 会阻止临时签名的扩展程序自动注入 YouTube。作为变通方法,请使用 JS 覆盖层 + AppleScript 监视器 (yt-ad-watch.sh):

Note: This is best-effort. Chrome is fully reliable; Safari works but may need manual testing.

注意:这是尽力而为的方案。Chrome 完全可靠;Safari 可以使用,但可能需要手动测试。

Every ad YouTube serves you is recorded:

YouTube 向您投放的每个广告都会被记录:

Export as JSON or CSV from the popup. Data stays local — nothing is sent anywhere.

可从弹出窗口导出为 JSON 或 CSV。数据保留在本地——不会发送到任何地方。

YouTube’s ad system serves ads as part of the page load. When you reload, YouTube re-evaluates whether to serve an ad based on your session state. After 1-2 reloads, the ad slot is typically empty and the video plays directly. This is a client-side, zero-cost workaround — no filter lists, no network blocking, no detection by YouTube’s anti-adblock system.

YouTube 的广告系统将广告作为页面加载的一部分进行投放。当您重新加载时,YouTube 会根据您的会话状态重新评估是否投放广告。经过 1-2 次重新加载后,广告位通常会变空,视频直接播放。这是一种客户端、零成本的变通方法——无需过滤列表,无需网络拦截,也不会被 YouTube 的反拦截系统检测到。

If millions of users did this, each reload = a full page load = server request. YouTube would see a spike in page loads but a drop in ad impressions. It’s not a DDoS (no amplification, no botnet), but it’s a passive protest: every reload is a vote that says “I will not watch your ad.” The ad revenue model breaks when reloads are cheaper than ad views.

如果有数百万用户这样做,每次重新加载 = 一次完整的页面加载 = 一次服务器请求。YouTube 会看到页面加载量激增,但广告展示量下降。这不是 DDoS(没有放大攻击,没有僵尸网络),而是一种消极抗议:每一次重新加载都是一张选票,表达着“我不会看你的广告”。当重新加载的成本低于广告观看的价值时,广告收入模式就会崩溃。

“Every reload is a vote: I will not watch your ad.” — George Anton, creator

“每一次重新加载都是一张选票:我不会看你的广告。” —— George Anton,创作者

Best combo: uBlock Origin (blocks most ads) + 🎯 YouTube Ad Punisher (catches the ones that slip through and logs them) + SponsorBlock (skips sponsor reads). They don’t conflict.

最佳组合:uBlock Origin(拦截大部分广告)+ 🎯 YouTube Ad Punisher(捕获漏网之鱼并记录它们)+ SponsorBlock(跳过赞助内容)。它们之间没有冲突。

MIT — do whatever you want with it.

MIT 协议——您可以随意使用它。

Built with Alice (SIFTA) for George Anton.

由 Alice (SIFTA) 为 George Anton 构建。

“If millions installed this, YouTube would feel every reload.” 🐜

“如果有数百万人安装了这个,YouTube 将会感受到每一次重新加载。” 🐜

YouTube Ad Blocker - Chrome / Browser Extension

YouTube 广告拦截器 - Chrome / 浏览器扩展程序