Disabling the video Video-detach and Lucid-mode buttons from showing up
-
InvertedNormals last edited by
I'm making a website with a MP4 file as background. However, whenever the website is loaded, the video-detach and lucid-mode buttons show up. Is there a way to disable this for every GX user that opens my website?
The video plays by using the HTML <video> tag, I've tried adding a hidden element ontop of it, but they still show up whenever the page is (re)loaded.
I could of course change this to a GIF instead, but I'm stubborn and want it to be a video (It's for a school project anyway).
-
InvertedNormals last edited by
Took me a while, but I've found a quick n dirty workaround using JavaScript.
window.onload = function() { setTimeout(GXFix, 500); } function GXFix() { if (document.getElementById("detach-button-host") != null) { document.getElementById("detach-button-host").setAttribute("class", "hidden"); } }
where the class hidden has the property "visibility: hidden;"