Created
August 30, 2020 22:31
-
-
Save ttonyh/9ebfa1fcce451b61dd53d49cfa0a8b41 to your computer and use it in GitHub Desktop.
Bookmarklet to show a YouTube page in list view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( ( 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