How it works
When you visit a YouTube video, it will check the database to see if anyone has made any submissions for the video. If so, the segment will automatically get skipped when you reach it.
The notice notification
Once the sponsorship is skipped, you can upvote or downvote this segment and it will be recorded in the database.
Instead of just sending the top reported segment, it will looks for all the overlapping segments. Only one of each group of overlapping segments will be sent to the user.
Pseudo-random distribution More Info »
To prevent one submission with a lot of votes never being able to be replaced, I decided to use a weighted random distribution based on the equation on the right.
Square root functionThis formula makes small amount of votes (under 10), matter a lot, and makes the really large votes slowly not matter as much. This makes a newly submitted sponsor time always possible to be sent out to users to get votes. So, most users will get the best submission, but some users will get lesser votes submissions so that they can either be upvoted or downvoted. Submissions with less than -1 votes are ignored entirely.
You can read more about my algorithm here.
Anyone can submit segments, either by clicking on the button that is added to the YouTube player or by opening the extensions popup. The button in the YouTube player can be hidden. You click once to indicate the start of a segment, then click again to indicate the end. You can submit as many segments as there are in the video. Make sure to choose the correct category for each segment.
What data is stored?
The bare minimum.