Skip YouTube video sponsors (server side portion)
Find a file
2022-02-11 12:05:04 -05:00
.github/workflows eslint + workflow formatting 2021-12-20 23:04:41 -05:00
databases Highlight category now has it's own action type 2022-01-19 17:48:09 -05:00
docker Downgrade redis 2022-01-20 15:57:31 -05:00
nginx Add nice error page to homepage 2022-01-16 18:18:46 -05:00
src Don't allow changing highlight category 2022-02-11 12:05:04 -05:00
test Highlight category now has it's own action type 2022-01-19 17:48:09 -05:00
.editorconfig migrate to typescript 2020-10-26 19:13:30 +02:00
.eslintrc.js remove newline-before-return eslint 2021-11-27 02:42:59 -05:00
.gitignore Update dependencies & eslint 2021-08-27 17:09:31 -04:00
ci.json add redis tests 2021-12-19 02:03:50 -05:00
config.json.example Rename highlight category to poi_highlight 2021-08-17 22:01:12 -04:00
DatabaseSchema.md Add locking by action type 2022-01-02 14:00:54 -05:00
Dockerfile multi-stage dockerfile with node:14-alpine 2021-06-29 19:22:18 -04:00
entrypoint.sh multi-stage dockerfile with node:14-alpine 2021-06-29 19:22:18 -04:00
LICENSE Create LICENSE 2019-08-19 20:59:10 -04:00
nodemon.json fix nodemon to watch .ts files 2020-11-01 17:29:57 +02:00
package-lock.json Bump follow-redirects from 1.14.5 to 1.14.8 2022-02-11 01:21:14 +00:00
package.json Add overlapping group caching 2021-12-20 22:51:47 -05:00
README.MD Update dependencies & eslint 2021-08-27 17:09:31 -04:00
test.json Add submitting description for chapters 2021-11-06 00:54:28 -04:00
tsconfig.json read test script value from package.json 2021-07-03 16:01:29 +10: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