/** * Golfed version of bff-ia-sort.js. * Same functionality formatted as a shortened one-liner for execution in a browser's address bar. * Can be saved and executed as a bookmarklet - save the following as a bookmark's URL, and click * the bookmark when viewing https://archive.org/details/Battlefield_Friends/ **/ javascript:{((j,p,x,y,z,s=j.getPlaylist().map(i=>i.title.includes('Take The Objective')?{...i,s:3,e:6}:([x,y,z]=i.title.match(/(\d)\s*Ep?\s*(\d+)/),{...i,s:p(y),e:p(z)})).sort((a,b)=>a.s>b.s?1:a.sb.e?1:a.e($('#jw6__list a').each((i,e)=>$(e).find('.ttl').text(s[i].title)),j.load(s)))(jwplayer(),parseInt)}