Skip to content

Instantly share code, notes, and snippets.

@eyedean
Last active March 24, 2022 19:50
Show Gist options
  • Save eyedean/3529d1c5d4d50d38dacddac8aeb9e91b to your computer and use it in GitHub Desktop.
Save eyedean/3529d1c5d4d50d38dacddac8aeb9e91b to your computer and use it in GitHub Desktop.
mejs fix
<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