Different approach: Only use youtube.com as a source for JSON. (There is no worthwhile video at youtube.com anyway, all worthwhile video is at googlevideo.com.) As such, never see any ads. The JSON contains all the information needed, including the goooglevideo.com URLs. No adblocker or "Javascript player" are necessary.