Skip advertisement button?

I noticed that the native apple Touch Bar allows to skip through youtube advertisement. It would be cool to make a button that skips to the and of the video instantly to skip advertisement.

Anyone any idea how to make this?

Any ideas? It's not working as of now...