Created
April 9, 2019 07:34
-
-
Save Krazete/a8df95afe5764b4ebdad1791d065ece6 to your computer and use it in GitHub Desktop.
Force-Enable Video 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
function forceControls () { | |
Array.from(document.getElementsByTagName("video")).forEach(video => { | |
video.setAttribute("controls", "true"); | |
video.style.zIndex = "9999"; | |
}); | |
requestAnimationFrame(forceControls); | |
} | |
forceControls(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment