Skip to content

A modern rewrite of Lartza's SB Browser frontend; it uses both SponsorBlock and YouTube Data API to modularize browsing SponsorBlock segments

License

Notifications You must be signed in to change notification settings

kurojifusky/SponsorExplorer

Repository files navigation

SponsorExplorer

A modern rewrite of Lanrza's SBBrowser and with more features and a more fancy and intuitive UI!

SponsorExplorer LTT Example

Features

  • ✅ Display submitted segments
  • 🚧 Play and filter segments
  • 🚧 Group skip/mute segments and full video labels
  • 🚧 Watchlist for YT videos, playlist, as well as usernames/userIDs
  • 🚧 In-depth stats about submitted segments in videos, channels, and from usernames/userIDs
  • 🚧 Browse segments on YouTube channels

Inspiration

While I was in the middle of writing a Tampermonkey script for sb.ltn.fi to append titles and thumbnails using the YouTube API, along with other enhancements, I had this idea to remake SBbrowser but with an approach to a modern redesign and all the different features such as segment playback, a watchlist, etc.

Installation and Setup

Requires Node.js v20 and the Yarn package manager - install dependencies with Yarn and start local dev server:

yarn
yarn dev

Getting the YouTube API key

  1. Create a project on https://console.cloud.google.com, skip this step if you already have a project on the Google Cloud Platform
  2. Look for "APIs & Services" or type "api and services" in the search bar
  3. Click on "Enable APIs and Services", just below the search bar; that will take you to the API Library page
  4. Search for "youtube data api", and you'll see a result for "YouTube Data API v3" enable it
  5. Once enabled, click on Manage; on the left side, go to Credentials, click "Create Credientals" and choose "API key"
  6. Copy the API key provided and add it as an environment variable as SECRET_YT_DATA_API_KEY

(Optional) Securing your API key

Optionally, as an added security layer, you can restrict the API key you just created, since they're unrestricted. By clicking on "Edit API key" on the dialog box or by clicking on the three dots on the right and clicking "Edit API key"

  1. Under "Set an application restriction", choose "Websites"
  2. On "Website restrictions", add an item with the field localhost:5173, then click Done
  3. Choose "Restrict key" under "API restrictions". On the dropdown menu, choose the YouTube API by filtering the results and click on the checkmark
  4. Save your changes

License

MIT

About

A modern rewrite of Lartza's SB Browser frontend; it uses both SponsorBlock and YouTube Data API to modularize browsing SponsorBlock segments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published