Skip to content

Instantly share code, notes, and snippets.

@huphtur
Last active March 1, 2024 16:01
Show Gist options
  • Save huphtur/5557258 to your computer and use it in GitHub Desktop.
Save huphtur/5557258 to your computer and use it in GitHub Desktop.
Bookmarklet: display maximum resolution YouTube thumbnail
javascript: function gqv(v) {
var q = window.location.search.substring(1);
var vars = q.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == v) {
return pair[1];
}
}
return (false);
}
window.location = 'http://img.youtube.com/vi/' + gqv('v') + '/maxresdefault.jpg';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment