Skip YouTube video sponsors (server side portion)
Find a file
2023-03-29 00:32:29 -04:00
.github Merge pull request #529 from mchangrh/sanitizeVideoID 2022-12-27 17:10:27 -05:00
containers Create an image for db backups 2022-05-17 01:29:49 -04:00
databases Fix private db table removal and original title type 2023-01-28 02:31:49 -05:00
docker test fixes 2022-09-07 02:16:23 -04:00
src Clear query cache for branding 2023-03-29 00:32:29 -04:00
test Unlock other segments when vip votes for new segment 2023-02-14 22:10:46 -05:00
.editorconfig migrate to typescript 2020-10-26 19:13:30 +02:00
.eslintrc.js Add eslint rules for dealing with promises 2022-09-07 20:01:11 -04:00
.gitignore add nyc output to gitignore 2022-09-24 22:46:16 -04:00
.nycrc.json add getIP test cases, misc others 2022-09-24 22:51:20 -04:00
ci.json add minUserIDLength config option 2022-12-17 23:35:13 -05:00
config.json.example add minUserIDLength config option 2022-12-17 23:35:13 -05:00
DatabaseSchema.md add innerTube as primary videoInfo endpoint 2022-09-15 17:02:33 -04:00
Dockerfile update dependencies, finally bump to node 18 2022-11-21 14:36:11 -05:00
entrypoint.sh Only create blank config if it doesn't exist 2022-11-01 14:21:33 -04:00
LICENSE Relicense project to AGPL 2022-12-26 23:18:43 -05:00
LICENSE.old Relicense project to AGPL 2022-12-26 23:18:43 -05:00
nodemon.json fix nodemon to watch .ts files 2020-11-01 17:29:57 +02:00
package-lock.json Bump luxon from 1.28.0 to 1.28.1 (#535) 2023-01-28 01:22:05 -05:00
package.json lock redis, postgres versions, no persistence in redis 2023-01-01 02:51:44 -05:00
README.MD Relicense project to AGPL 2022-12-26 23:18:43 -05:00
test.json videoID validation and userID min length 2022-12-27 01:45:50 -05:00
tsconfig.json add innerTube as primary videoInfo endpoint 2022-09-15 17:02:33 -04:00

SponsorBlock Server

SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.

This is the server backend for it

Server

This uses a Postgres or Sqlite database to hold all the timing data.

To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database. You can download a backup or get archive.org to take a backup if you do desire. The database is under this license unless you get explicit permission from me.

Hopefully this project can be combined with projects like this and use this data to create a neural network to predict when sponsored segments happen. That project is sadly abandoned now, so I have decided to attempt to revive this idea.

Client

The client web browser extension is available here: https://github.com/ajayyy/SponsorBlock

Build Yourself

This is a node.js server, so clone this repo and run npm install to install all dependencies.

Make sure to put the database files in the ./databases folder if you want to use a pre-existing database. Otherwise, a fresh database will be created.

Rename config.json.example to config.json and fill the parameters inside. Make sure to remove the comments as comments are not supported in JSON.

Ensure all the tests pass with npm test

Run the server with npm start.

Developing

If you want to make changes, run npm run dev to automatically reload the server and run tests whenever a file is saved.

API Docs

Available here

License

This is licensed under AGPL-3.0-only.