Last active
January 2, 2016 18:49
-
-
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.
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
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