Tired of pseudo-client-side YouTube downloaders? Then it's time to get right to the source. Just create a new bookmark, type
javascript:
in the "link" field and then paste this code after it:
a=function(g,h,i){return i.indexOf(g)==h};b=yt.player.Application.create('player-api',ytplayer.config);b.dispose();d=JSON.stringify(b.getVideoData()),e=d.match(/https:[^"]+videoplayback[^"]+/g),f=e.filter(z=>z.length<1000);for(c of (f.length?(f.filter(a).map((j,k)=>j+'&signature='+d.match(/[0123456789ABCDEF.]+(?=")/g).filter(z=>z.length>20).filter(a)[k])):e.filter(a)))if(~["141","251","140","171","250","249"].indexOf(new URLSearchParams(c.split('?')[1]).get('itag')))window.location=c