Last active
March 24, 2022 19:50
-
-
Save eyedean/3529d1c5d4d50d38dacddac8aeb9e91b to your computer and use it in GitHub Desktop.
mejs fix
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
<script type="text/javascript"> | |
[...document.getElementsByClassName("mejs__controls"),...document.getElementsByClassName("mejs__layers")].forEach((x)=>{ if(!x.parentElement.parentElement.parentElement.parentElement.classList.contains("mejs__mediaelement")) x.style.display="none" }); | |
c={}; [...document.getElementsByTagName("svg")].forEach((x) => c[x.classList[0]] = c[x.classList[0]] || x.querySelector(":not(use")); | |
[...document.getElementsByTagName("svg")].forEach((x) => { if (!x.querySelector(":not(use)")) { y = c[x.classList[0]]; y.childNodes.forEach(z=>x.appendChild(z.cloneNode(true))); }}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment