Skip to content

Instantly share code, notes, and snippets.

@ttonyh
Created August 30, 2020 22:31
Show Gist options
  • Save ttonyh/9ebfa1fcce451b61dd53d49cfa0a8b41 to your computer and use it in GitHub Desktop.
Save ttonyh/9ebfa1fcce451b61dd53d49cfa0a8b41 to your computer and use it in GitHub Desktop.
Bookmarklet to show a YouTube page in list view
( ( w, l, lo, p, qp ) => {
l = window.location;
lo = new URL(l);
p = l.search;
qp = new URLSearchParams(p);
qp.append('disable_polymer', '1');
qp.append('flow', 'list');
lo.search = '?' + qp.toString();
w.location = lo.toString();
})(window);
// Bookmarklet
// javascript:((w,l,lo,p,qp)=>{l=window.location;lo=new URL(l);p=l.search;qp=new URLSearchParams(p);qp.append('disable_polymer','1');qp.append('flow','list');lo.search='?'+qp.toString();w.location=lo.toString();})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment