Created
March 11, 2020 17:27
-
-
Save dwsmart/aea4e3ead82d7322b4c060b93e22e2b3 to your computer and use it in GitHub Desktop.
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
//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