talira

SponsorBlock

Crowdsourced browser extension and open API for skipping sponsor segments in YouTube videos

open sourceAGPL-3.0-onlyself-hostablefree

SponsorBlock is an open source, crowdsourced browser extension that skips sponsor segments in YouTube videos: users submit when a sponsor read starts and ends, and everyone else's extension skips it automatically. It also handles intros, outros, reminders to subscribe, self-promotion, previews, filler, non-music sections of music videos and a jump to the highlight, and each category can be skipped, muted or just shown. Segments are fetched with a k-anonymity query that sends only a prefix of the video ID's hash, and the community votes bad submissions away. It runs in Chrome, Firefox (including Firefox for Android), Edge and Safari on macOS and iOS, and works on Invidious. Its public API and downloadable database feed other players and tools, including yt-dlp, iSponsorBlockTV and ports for mpv, Kodi and Android TV; the extension is GPL-3.0-or-later, the server AGPL-3.0 and the data CC BY-NC-SA 4.0.

Problems it solves

  • automatically skip the sponsor reads in the middle of YouTube videos
  • skip YouTube intros, outros and 'don't forget to subscribe' reminders without scrubbing
  • jump straight to the part of a video everyone actually came for
  • skip the talking parts of music videos so they play like a normal song
  • mute in-video ads instead of skipping them so I don't lose context
  • skip sponsorships on YouTube on my phone using Firefox for Android
  • skip sponsor segments in Safari on my Mac and iPhone
  • get sponsor segment timestamps for YouTube videos from an API for my own player
  • download a public dataset of sponsored segments in YouTube videos for research
  • remove sponsor sections from YouTube videos I download for offline viewing
  • mark where the sponsor read is in a video I'm watching so other viewers can skip it
  • skip in-video sponsorships that ad blockers can't touch because they're part of the video
  • skip sponsors without the server learning exactly which video I'm watching
  • skip sponsor segments when watching YouTube through Invidious

Features

  • skips crowdsourced sponsor segments automatically
  • categories: sponsor, intro, outro, interaction reminders, self-promotion, preview, filler, non-music, hook, highlight and chapters
  • skip, mute or show each category
  • submit segments and vote on others' submissions, with VIP moderation and locked segments
  • personal segments stored only in your browser
  • privacy-preserving lookups that send a 4-character prefix of the video ID's SHA-256 hash
  • optional anonymous skip tracking for leaderboards
  • Chrome, Firefox, Edge and Safari (macOS and iOS) extensions; works on m.youtube.com and Invidious
  • public REST API at sponsor.ajay.app for segments, submissions, votes and stats
  • full database downloadable by anyone, with community mirrors
View 2 more
  • server code to host your own instance (Node.js with Postgres or SQLite)
  • translations on Crowdin

Limitations

  • Its data isn't free for commercial use: the API and database are CC BY-NC-SA 4.0 unless the maker grants explicit permission12
  • Doesn't work in the official YouTube mobile apps: on iOS it works on m.youtube.com in Safari, and Android support is through Firefox34

Ways to run it

SponsorBlock (sponsor.ajay.app)

Hosted by the maker, GPL-3.0-or-later

free in Chrome, Firefox and Edge; the Safari extension is $2.99 on the App Store, or free to build from source5678

Only in this edition

  • the community segment database, voting and VIP moderation that the official extensions and most ports use
  • the public API at sponsor.ajay.app

Pricing

SponsorBlock Server (self-hosted)

You run it, AGPL-3.0-only

free29

You arrange

  • Node.js
  • a PostgreSQL or SQLite database
  • the public database download if you want existing segments
  • pointing your extension or client at your server

Self-hosting docs Code

Capabilities

Has an APIplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what SponsorBlock does.

  1. iSponsorBlockTV SponsorBlock client for all YouTube for TV clients

Compare SponsorBlock with the top 3