Last active
December 10, 2017 01:39
-
-
Save trentrand/fb740efac8f3e8cd0bf4306b17c441df to your computer and use it in GitHub Desktop.
Sanitize third-party media player controls
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(){var d=document.createElement('script');d.src='http://code.jquery.com/jquery-latest.js';d.onload=function(){$(".media-control").remove();$("video").prop("controls",true)};document.getElementsByTagName('head')[0].appendChild(d)})() |
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
(function(){ | |
var d=document.createElement('script'); | |
d.src = 'http://code.jquery.com/jquery-latest.js'; | |
d.onload = function(){ /* load handler here */ | |
$(".media-control").remove(); | |
$("video").prop("controls", true); | |
}; | |
document.getElementsByTagName('head')[0].appendChild(d); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment