Posted inApps / Open Source

SponsorBlock: Automatically Skip Sponsored Segments on YouTube

SponsorBlock logo alongside a video player illustrating playback skipping a green sponsored segment.

So you’ve taken care of the ads on YouTube. You’re watching a video and, a couple of minutes in, the person in the video starts telling you why you need yet another VPN.

There’s not much your ad blocker can do about it. After all, the ad is part of the video you’re watching. You can manually skip ahead, or you can use SponsorBlock, an open source browser extension that does it for you.

So how does SponsorBlock know where the ad starts and, more importantly, where it ends? Somebody else has already done the work for you.

Let’s say there’s a sponsorship in a 20 minute video between 5:00 and 6:30. Somebody who’s already watched it submits those two timestamps to the database. When you open the video, SponsorBlock looks them up, marks the sponsorship in green on the seek bar and jumps from 5:00 to 6:30. Nothing’s actually removed from the video.

And it doesn’t have to be a sponsorship. You can skip intros and outros, previews of what’s coming up in a video, reminders to like and subscribe, self promotion and even parts of music videos where there’s no music.

SponsorBlock extension popup showing categorized video segments and their start and end timestamps.

First thing I’d do after installing SponsorBlock is check the category settings. Don’t automatically skip everything just because you can. The intro to a tech review and the intro to a documentary aren’t necessarily the same thing.

I’d set sponsorships to be skipped automatically and leave intros for manual skipping. For each category you can also choose to just mark segments on the seek bar or disable it altogether. You can even whitelist channels if you want to watch their videos in their entirety.

Where can you use SponsorBlock?

SponsorBlock is free for Firefox and Chromium browsers ( Chrome, Brave, Edge etc. ) on Linux, macOS and Windows. If you’re a Safari user, you can get it for macOS and iOS, but you’ll have to pay for the App Store version or build it yourself for free.

Android users can install SponsorBlock in Firefox. Keep in mind that on both Android and iOS we’re talking about watching YouTube in your browser, not in the official YouTube app.

Don’t want to use a browser to watch YouTube at all? We’ve already covered FreeTube here on FSM. One of the cool things about FreeTube is that SponsorBlock is built in. Just enable it in the app’s settings. You can also find third party integrations for mpv, Android TV clients and other players ( don’t assume they’ll all offer the same features or privacy settings ).

One more thing to check in the settings

In order to look up segments, the extension has to talk to SponsorBlock’s server. Instead of sending the video ID, it sends part of a hash of that ID. It gets a bunch of possible matches back and works out which one it needs on your device.

But there’s a catch. SponsorBlock can report skipped segments back to the server so contributors can see how many people they’ve helped. In the development source code I checked ( version 6.1.7 ), this is enabled by default, even in private browsing if you’ve allowed the extension to run there.

Unlike the lookup, that report includes the actual video ID as well as the segment ID. Don’t want to send that info back to the server? Disable skip tracking in the extension’s settings.

If you submit a segment or vote on one, you’ll also be sending some extra info including a randomly generated user ID. According to the project’s privacy policy, hashed IP addresses are used to prevent spam and a separate temporary IP hash is used to count users. The policy also covers Cloudflare and occasional server error logging.

And no, installing SponsorBlock won’t stop Google from tracking you on YouTube. That’s not what the extension is for.

What happens when it gets it wrong?

Somebody might mark part of the actual content as an intro or get the timing of a sponsorship wrong. If you wanted to watch what SponsorBlock just skipped, undo the skip. You can vote on the segment or report issues with its timing or category.

SponsorBlock notification showing a skipped sponsorship with controls to undo the skip, vote or edit the segment.

Now let’s say you’re watching a video and come across an ad that SponsorBlock didn’t skip. Instead of just skipping it yourself, you can mark the beginning and the end, choose the category, preview it and submit it. Do read the submission guidelines first. You don’t want to save someone 30 seconds of their time by also skipping 10 seconds of the video they came to watch.

The extension and server are open source and the database itself is available for download. If you’re going to contribute, note that the terms of use assign ownership of your submissions to the developer, who makes them publicly available under the database license.

Keep in mind that if nobody’s submitted the timestamps, there’s nothing to skip. And for all of this to work, the server needs to be available and the extension needs to work with YouTube’s player.

So keep your ad blocker. But if you’re tired of having to manually skip ads within YouTube videos, give SponsorBlock a try. Download it for your browser from the official website or check out the source code on GitHub.

Support FSMdotCOM on Liberapay