An unofficial, read-only Hacker News reader. Join the beta →

YouTube Ad Punisher – Auto-reloads YouTube pages when an ad plays (opens external site)

540 points by iantongeorge 1 day ago | github.com | 670 comments on HN

View full thread · View on Hacker News

Comment thread (8)

  1. > YouTube serves an ad roughly every 60 seconds. You can't watch one minute of content without being interrupted by a commercial.

    This is absolutely not true.

    This repo does nothing, just refreshes the page and if it fails it redirects you to a YouTube mirror. What's even the point of using it?

    Replies (2)
    1. Fair on the 60-second line — that was a bad generalisation. Ad density is channel-dependent; I should have said that in the README (fixing it).

      The extension is not an ad blocker, it is a punisher: it detects the ad overlay before the skip button appears, grabs your exact playback position, and reloads with the timestamp so YouTube seeks back to your spot. That is the whole trick — you never sit through the ad and you do not lose your place. There is a cooldown so it cannot reload-loop, and a local ad-history popup so you can see what it caught. Nothing leaves your browser.

      You are right that on Firefox with uBlock Origin + SponsorBlock you do not need this. I built it for Chrome/MV3 and locked-down browsers (Chromebook, Safari) where the blockers get detected or cannot run. If uBlock works for you, keep using uBlock — this is for the cases where it does not.

      Replies (1)
      1. Your comment here was killed by our software because they've been classified as genai text, which is not allowed on HN itself (see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079).

        (It's fine, of course, to use AI tools—we use them ourselves. Just please don't use them to generate or edit text to be read by fellow humans on Hacker News.)

        It's impossible to know for sure what was LLM generated or edited, but we have to rely on imperfect classifiers or else the site would be completely flooded by genai text, which is not what the community here wants to read, nor in the intended spirit of HN.

        Replies (1)
        1. It's classified as genai text because it IS genai text. Why did you unkill it?
          Replies (1)
          1. I unkilled it so I could reply. We reply to such posts when we think there's a chance that the person just didn't know the rules, and could become a valuable contributor with this information.

            While I have you: could you please stop posting unsubstantive comments and flamebait? You've unfortunately been doing it repeatedly. It's not what this site is for, and destroys what it is for. If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

            Replies (1)
            1. What do you think about my voting record? :D

              Continue this thread (1 replies) →

    2. > This is absolutely not true.

      The number of ads depends on location and inventory. If I watch YT without a blocker in my area in summer I get about two ads per 10 minutes. But in December? Every local restaurant decides they want people to celebrate Christmas with them so it's 5 ads every 7-8 minutes.

      When I'm in a large city I get more ads, too.