video_part0076.ts
video_part0077.ts
video_part0078.ts
ad_part0001.ts
ad_part0002.ts
video_part0079.ts
video_part0080.tsI guess they could prevent that if they randomize the part names (with some m:1 mapping on the server side). As long as you have control of your CDN, this would even not mess with caching.
Since the YouTube marks ads, I guess pulling the playlist twice won't really be needed. YouTube's player should somehow know when the ad starts and when it ends after all.
My friend asked me to write a userscript that simulates pressing the "Skip ad" button, so he won't stain his mouse with grease while eating.
Checking if there is a "Skip ad" button every quarter of a second and invoking its click() method eliminated the video ads completely. As it turns out, the button existed alongside the 5 second countdown, just wasn't visible.
I don't know if it still works the same way today, but it felt good to accidentally make an effective adblock with five lines of code.