I’m not sure if a sponsorblock like solution will work. Sponsorblock is entirely reliant on timestamps provided by users.
A similar solution for YouTube’s ads will only work if the ads always happen at the same timestamps and have the same length. This is not necessarily the case, as ads can happen at any point.