Skip to content

Instantly share code, notes, and snippets.

@dwsmart
Created March 11, 2020 17:27
Show Gist options
  • Save dwsmart/677dfdae3be04a85f5fa854d08685476 to your computer and use it in GitHub Desktop.
Save dwsmart/677dfdae3be04a85f5fa854d08685476 to your computer and use it in GitHub Desktop.
//Run this in the console, will cooy the shadow DOM to the light. Will only work for open ones, and will not recurse nested shadow DOMs
for (let elMnt of document.getElementsByTagName('*')) {
if (elMnt.shadowRoot) elMnt.innerHTML = elMnt.shadowRoot.innerHTML;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment