This isn't about the ads that are inserted by YouTube. This is trying to block parts of the main video that are ads.
They often will pre-record these segments with a consistent "now with a quick word about our sponsors" jingle which can be statically detected and removed from the video.