Skip to content

Instantly share code, notes, and snippets.

@CraigsOverItAll
Last active January 2, 2016 18:49
Show Gist options
  • Save CraigsOverItAll/8346171 to your computer and use it in GitHub Desktop.
Save CraigsOverItAll/8346171 to your computer and use it in GitHub Desktop.
This is a little bookmarklet that removes the very annoying message "The Adobe Flash Player is required for video playback. Get the latest Flash Player". It turns out that mostly this is a lie and simply removing the elements from the DOM of the YouTube reveals the HTML5 Player and you can watch the video.
javascript:(function(){
derror = document.querySelector('.ytp-error');
derror.parentNode.removeChild(derror);
dloader = document.querySelector('.html5-video-loader');
dloader.parentNode.removeChild(dloader);
}());
// Use the single line version below for your bookmarklet.
javascript:(function(){derror=document.querySelector('.ytp-error');derror.parentNode.removeChild(derror);dloader=document.querySelector('.html5-video-loader');dloader.parentNode.removeChild(dloader);}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment