Install the Sponsorblock extension. It does this automatically, provided someone watched the video before you and told it where the sponsor is. It can also, optionally, skip over "like and subscribe!", "buy my merch", intro and outro jingles, and other potentially low-value segments.
It's actually YouTube that adds those as a feature for Premium subscribers. It infers the locations automatically using viewing data.